Function at 0x4914cd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x631040]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0xc]
mov edx, ecx
mov dword [esp + 0x7c], eax
push esi
push edi
mov esi, dword [edx]
lea edi, [edx + 0x2f0]
mov dword [esp + 0x48], edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], esi
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
lea eax, [edx + 0x50]
mov dword [esp + 0x78], eax
mov eax, dword [esi]
mov dword [esp + 0x74], eax
imul eax, ebx, 0x50
add edi, eax
mov dword [esp + 0x70], edi
mov eax, dword [edi + 0x40]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0x2c]
imul ecx, eax, 0x50
mov eax, dword [edx + 4]
add eax, 8
add eax, ecx
lea ecx, [edx + 0x1e8]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x30]
mov edx, eax
mov dword [esp + 0x3c], eax
call fcn.00494686
mov ecx, dword [esp + 0x48]
not eax
and eax, dword [esp + 0x88]
not edx
and edx, dword [esp + 0x84]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], edx
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov ecx, ebx
call fcn.005b4ae0
xor ecx, ecx
xor ebx, ebx
inc ecx
and eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
push 0x20
pop edx
test byte [eax + 0x24], 0x40
je 0x4915ac
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
test byte [eax + 0x28], dl
je 0x4915b0
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0xc]
call fcn.00461058
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
call fcn.00461058
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov dword [edi + 0x18], eax
cmp byte [edi + 0x2c], bl
jbe 0x491604
test byte [edx + 0x24], 8
je 0x491604
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0xc]
inc eax
push ebx
push eax
push ebx
push 0x4d
mov dword [esi + 0x2c], eax
pop edx
mov dword [edi], eax
call fcn.00460e33
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x68]
mov eax, ecx
test ecx, ecx
jle 0x49161c
mov ecx, edi
cmp dword [ecx], ebx
jne 0x49161c
dec eax
sub ecx, 0x50
test eax, eax
jg 0x491610
mov ecx, dword [esp + 0x48]
imul eax, eax, 0x50
mov eax, dword [eax + ecx + 0x2fc]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x7c], eax
test al, 0x10
je 0x491671
push dword [edx + 0x18]
mov esi, dword [edx + 0x1c]
mov ecx, dword [esp + 0x10]
push ebx
push esi
push 0xf
pop edx
call fcn.00460e33
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ebx
push dword [esp + 0x50]
push esi
push 0x10
pop edx
call fcn.00460e33
add esp, 0xc
mov dword [edi + 0x34], eax
mov byte [edi + 0x2d], 0xd
jmp 0x4928c9
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x24]
bt edx, 0xa
jae 0x4918bc
movzx eax, word [eax + 0x28]
mov ecx, esi
inc dword [esi + 0x40]
mov dword [esp + 0x14], eax
lea edx, [eax + 2]
call fcn.0047461f
mov ecx, eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], ebx
jbe 0x4916fc
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x4916f3
lea eax, [ecx + 2]
xor ecx, ecx
inc ecx
add eax, ebx
test byte [edx + 0xc], cl
je 0x4916df
push eax
push dword [esp + 0x48]
mov ecx, esi
push ebx
push edi
call fcn.00490bd3
mov eax, dword [edi + 0x10]
add esp, 0x10
mov dword [esp + 0x10], eax
jmp 0x4916ef
mov edx, dword [edx]
push ecx
push eax
mov ecx, esi
mov edx, dword [edx + 0x10]
call fcn.0049144a
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x4916aa
xor ebx, ebx
mov eax, dword [esp + 0x2c]
push ebx
push ecx
mov ecx, dword [esp + 0x14]
push dword [eax + 0x18]
push 0x4d
pop edx
call fcn.00460e33
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0xc]
inc eax
push ebx
push eax
push dword [esp + 0x1c]
push 0x4d
pop edx
call fcn.00460e33
mov ecx, dword [esp + 0x38]
add esp, 0xc
xor eax, eax
cmp byte [ecx + 0x1c], al
setne al
sub eax, 2
push eax
push dword [ecx + 0x20]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x1c]
push dword [esp + 0x4c]
push 0xb
pop eax
mov edx, eax
call fcn.00460f47
mov eax, dword [esp + 0x40]
add esp, 0x14
mov ecx, dword [esp + 0x48]
mov byte [eax + 0x1c], bl
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x30], eax
cmp byte [ecx + 0x2d], 0
mov ecx, dword [esp + 0xc]
push 0x47
pop eax
lea edx, [eax + 0x5b]
cmovne eax, edx
mov edx, dword [esp + 0x14]
mov byte [edi + 0x2d], al
sub edx, 1
mov eax, dword [ecx + 0x88]
mov dword [edi + 0x34], eax
mov dword [esp + 0x14], edx
js 0x4918b0
imul eax, dword [edi + 0x38], 0xc
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
add eax, 2
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x10], eax
cmp edx, 0x10
jae 0x4917f0
mov eax, dword [esp + 0x2c]
mov cx, dx
mov ax, word [eax + 0x1e]
shr ax, cl
test al, 1
je 0x4917e8
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.00490aaa
jmp 0x491897
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
test byte [eax + 0xc], 1
je 0x49189b
mov eax, dword [esp + 0x74]
cmp byte [eax + 0x45], 0
jne 0x49182f
mov eax, dword [esp + 0x4c]
mov edx, dword [edi + 0x3c]
sub eax, 0xc
mov dword [esp + 0x4c], eax
mov edx, dword [edx + eax + 4]
call fcn.00461566
push dword [eax + 0xc]
movzx edx, byte [eax]
push dword [eax + 8]
push dword [eax + 4]
call fcn.00460e33
add esp, 0xc
push ebx
push ebx
push 0x25
pop edx
mov ecx, esi
call fcn.0047023e
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x491897
mov eax, dword [esp + 0x10]
mov edx, 0x9d
push ebx
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x78]
call fcn.004701aa
pop ecx
mov ecx, eax
mov eax, dword [esp + 0x28]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x491889
mov edx, dword [esp + 0x24]
push ebx
mov dword [ecx + 0x1c], edx
push dword [edi + 0x18]
push eax
push esi
call fcn.00473c8b
mov eax, dword [esp + 0x38]
add esp, 0x10
mov ecx, dword [esp + 0x74]
mov edx, eax
mov dword [eax + 0xc], ebx
call fcn.00470584
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
dec edx
dec dword [esp + 0x24]
mov dword [esp + 0x14], edx
test edx, edx
jns 0x4917b3
mov ecx, esi
call fcn.0047264a
jmp 0x4928c9
test dl, 5
setne cl
bt edx, 8
setb al
test al, cl
je 0x491949
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
push eax
push dword [esp + 0x48]
mov dword [esp + 0x20], eax
push ebx
push edi
call fcn.00490bd3
mov edx, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, edx
je 0x491908
mov ecx, esi
call fcn.004745dc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push dword [edi + 0x10]
push dword [esp + 0x44]
push 0x20
pop eax
mov edx, eax
call fcn.00460e33
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
mov ecx, esi
inc eax
push eax
call fcn.00472604
mov edx, dword [esp + 0x40]
pop ecx
push dword [esp + 0x10]
mov ecx, esi
push 0xffffffffffffffff
call fcn.0047255d
pop ecx
pop ecx
jmp 0x49288c
mov ecx, 0x102
mov eax, edx
and eax, ecx
cmp eax, ecx
jne 0x491b98
push 0x20
pop eax
mov dword [esp + 0x40], 0xa2
mov ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
test al, dl
je 0x49198e
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], 4
mov eax, dword [eax + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x491992
mov dword [esp + 0x24], ebx
test dl, 0x10
je 0x4919ab
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 0x30]
mov edx, dword [edx + eax]
mov dword [esp + 0x14], edx
jmp 0x4919ad
mov edx, ebx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4919bf
mov dword [esp + 0x14], ecx
mov ecx, edx
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x491a7e
mov edx, dword [ecx]
mov dword [esp + 0x1c], 0x1917181a
mov dword [esp + 0x28], edx
mov ecx, dword [edx + 0x10]
call fcn.0046fc18
cmp eax, 1
jle 0x491a15
mov ecx, esi
call fcn.004745bd
mov edx, dword [edx + 0x10]
push 1
push eax
mov dword [esp + 0x18], eax
call fcn.0049144a
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
movzx eax, byte [ecx]
sub eax, 0x26
or eax, 1
mov cl, byte [esp + eax + 0x1c]
jmp 0x491a46
lea eax, [esp + 0x18]
mov edx, ecx
push eax
mov ecx, esi
call fcn.004735d5
mov edx, dword [esp + 0x14]
pop ecx
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.00490aaa
mov ecx, dword [esp + 0x28]
movzx eax, byte [ecx]
mov cl, byte [esp + eax - 0xa]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
push dword [esp + 0x24]
movzx edx, cl
push dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x44]
call fcn.00460e33
mov edx, dword [esp + 0x30]
add esp, 0xc
xor eax, eax
mov ecx, esi
inc eax
push eax
call fcn.00472604
mov edx, dword [esp + 0x14]
pop ecx
mov ecx, esi
call fcn.004745dc
jmp 0x491a9e
push ebx
push dword [esp + 0x1c]
test eax, eax
push dword [esp + 0x44]
push 0x3a
pop edx
push 0x35
pop ecx
cmovne edx, ecx
mov ecx, dword [esp + 0x18]
call fcn.00460e33
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x491b18
mov eax, dword [eax]
inc dword [esi + 0x2c]
mov ecx, dword [esi + 0x2c]
push 1
mov edx, dword [eax + 0x10]
mov dword [esp + 0x34], ecx
push ecx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.0049144a
mov edx, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [edx + 0x10]
call fcn.0046fc18
cmp eax, 1
jg 0x491af4
mov al, byte [edx]
cmp al, 0x28
je 0x491ae0
cmp al, 0x26
jne 0x491af4
mov eax, dword [esp + 0x44]
xor eax, 1
lea edx, [eax*2 + 0x27]
mov dword [esp + 0x40], edx
jmp 0x491b03
mov eax, dword [esp + 0x44]
lea eax, [eax*2 + 0x26]
mov dword [esp + 0x40], eax
call fcn.0046fc18
cmp eax, 1
jg 0x491b18
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00490aaa
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x44], ebx
mov ecx, dword [eax + 0x88]
sete al
add al, 6
mov dword [edi + 0x34], ecx
cmp dword [esp + 0x40], 0xa2
mov byte [edi + 0x2d], al
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x30], eax
je 0x4928c9
inc dword [esi + 0x2c]
mov esi, dword [esi + 0x2c]
mov ecx, dword [esp + 0xc]
push ebx
push esi
push eax
push 0x7b
pop edx
call fcn.00460e33
mov edx, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x50]
push esi
push 0xffffffffffffffff
call fcn.0047255d
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
push esi
push dword [esp + 0x58]
push dword [esp + 0x40]
call fcn.00460e33
mov ecx, dword [esp + 0x20]
add esp, 0x14
push 0x53
pop edx
call fcn.004612b5
jmp 0x4928c9
test edx, 0x200
je 0x4922b7
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x4c], ebx
movzx eax, word [ecx + 0x18]
movzx edi, word [ecx + 0x1a]
movzx ecx, word [ecx + 0x1c]
movzx esi, ax
mov dword [esp + 0x58], esi
movzx esi, di
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
movzx ecx, cx
mov esi, dword [edi + 0x20]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x40], esi
mov dword [esp + 0x64], ecx
mov ecx, ebx
mov dword [esp + 0x60], eax
mov esi, dword [edi + 8]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov byte [esp + 0x23], bl
mov byte [esp + 0x6f], bl
test byte [esi + 0x28], 1
mov esi, dword [esp + 0x50]
je 0x491c39
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x2b], cl
mov eax, dword [esp + 0x60]
jle 0x491c39
mov edi, dword [esp + 0x40]
cmp word [edi + 0x32], ax
mov edi, dword [esp + 0x70]
jbe 0x491c39
xor ecx, ecx
inc ecx
mov byte [esp + 0x23], cl
mov dword [esp + 0x34], ecx
movzx eax, ax
push 0x20
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
pop eax
test al, dl
je 0x491c75
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
inc dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + esi*4]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
movzx eax, ax
cmp ecx, eax
cmovbe ecx, eax
mov dword [esp + 0x34], ecx
test dl, 0x10
je 0x491d4b
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
movzx edx, ax
mov eax, dword [esp + 0x68]
cmp ecx, edx
cmova edx, ecx
mov ecx, 0x100
mov dword [esp + 0x18], edx
test word [eax + 0xa], cx
je 0x491cfd
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0xc]
inc eax
push ebx
push eax
mov dword [esi + 0x2c], eax
mov dword [edi + 0x24], eax
xor eax, eax
inc eax
push eax
push 0x4d
pop edx
call fcn.00460e33
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [eax + 0x88]
shl dword [edi + 0x24], 1
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x1c]
cmp byte [edx + eax], 1
mov edx, dword [esp + 0x18]
sete cl
xor ecx, dword [esp + 0x44]
or dword [edi + 0x24], ecx
mov dword [esp + 0x34], edx
cmp dword [esp + 0x5c], ebx
jne 0x491d4b
mov eax, dword [esp + 0x60]
movzx ecx, ax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
movsx ecx, word [eax + ecx*2]
mov dword [esp + 0x18], ecx
test ecx, ecx
js 0x491d37
mov eax, dword [esp + 0x40]
add ecx, ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], bl
je 0x491d40
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], edx
cmp ecx, 0xfffffffe
jne 0x491d4b
xor eax, eax
mov dword [esp + 0x34], edx
inc eax
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x60]
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x18], ecx
cmp ax, cx
jae 0x491d7c
movzx ecx, ax
mov eax, dword [edx + 0x1c]
xor edx, edx
cmp byte [ecx + eax], dl
sete dl
cmp dword [esp + 0x44], edx
je 0x491d8b
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x491dc5
cmp cx, ax
jne 0x491dc5
jmp 0x491d8f
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
mov al, byte [esp + 0x23]
mov byte [esp + 0x6f], al
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], ecx
movzx ecx, si
mov esi, dword [esp + 0x50]
movzx eax, al
mov byte [esp + 0x23], bl
mov dword [esp + 0x14], ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push dword [esp + 0x38]
push edx
mov edx, edi
call fcn.00491091
add esp, 0xc
mov dword [esp + 0x34], eax
cmp dword [esp + 0x1c], ebx
je 0x491e04
cmp word [esp + 0x64], bx
je 0x491e04
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x74]
movzx edx, ax
add edx, dword [esp + 0x1c]
call fcn.0044a476
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x491e22
test byte [eax + 0xc], 0x28
jne 0x491e22
xor edx, edx
mov dword [esp + 0x28], ebx
inc edx
jmp 0x491e29
xor edx, edx
inc edx
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x491e3b
test byte [ecx + 0xc], 0x28
mov dword [esp + 0x10], ebx
je 0x491e3f
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x60]
test eax, eax
jne 0x491fdf
test cx, cx
jne 0x491fdf
mov eax, dword [esp + 0x58]
movzx edx, ax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x58], edx
mov al, byte [esp + 0x23]
test al, al
je 0x491e9c
movzx eax, cx
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
push ebx
push eax
push ebx
push 0x50
pop edx
call fcn.00460e33
mov edx, dword [esp + 0x64]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x28], ebx
inc edx
inc eax
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x23]
mov dword [esp + 0x58], edx
push dword [esp + 0x1c]
movzx eax, al
mov ecx, esi
sub edx, eax
push edx
mov edx, dword [esp + 0x3c]
call fcn.00490b26
mov eax, dword [esp + 0x34]
pop ecx
pop ecx
mov ecx, dword [esp + 0x58]
movzx eax, word [eax + 0x2a]
test ax, ax
je 0x491ec8
cmp ecx, eax
je 0x491ef8
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x2c]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x50]
push dword [esp + 0x60]
movzx edx, byte [ecx + eax*2 + 0x623e88]
mov ecx, dword [esp + 0x1c]
call fcn.00461001
add esp, 0x10
mov ecx, dword [esp + 0x60]
movzx eax, cx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4920c4
mov eax, dword [eax]
push 1
mov eax, dword [eax + 0x10]
mov dword [esp + 0x2c], eax
movzx eax, cx
mov ecx, esi
add eax, dword [esp + 0x38]
mov edx, eax
mov dword [esp + 0x34], eax
call fcn.00472604
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
pop ecx
movzx eax, ax
mov ecx, esi
push eax
push dword [esp + 0x34]
call fcn.0049144a
push dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.0049136d
mov ecx, dword [esp + 0x34]
add esp, 0xc
call fcn.004711ad
test eax, eax
je 0x491f7d
mov ecx, dword [esp + 0xc]
push ebx
push dword [esp + 0x28]
push dword [esp + 0x38]
push 0x22
pop edx
call fcn.00460e33
add esp, 0xc
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x491fb0
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x68]
movzx edx, ax
call fcn.00490b81
mov edx, dword [esp + 0x34]
pop ecx
mov ecx, dword [esp + 0x64]
push dword [esp + 0x4c]
movzx eax, cx
mov ecx, esi
push eax
call fcn.00490b26
pop ecx
pop ecx
mov ecx, dword [esp + 0x64]
movzx eax, cx
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x28]
call fcn.0046fc18
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x4920be
mov edx, dword [esp + 0x68]
mov ecx, edi
call fcn.00490aaa
jmp 0x4920eb
movzx edx, cx
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], 1
test eax, eax
je 0x491e63
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
mov edx, dword [eax + 0x10]
movzx eax, cx
mov ecx, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x30], edx
movzx eax, si
mov esi, dword [esp + 0x50]
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.0049144a
push dword [esp + 0x64]
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.0049136d
mov ecx, dword [esp + 0x3c]
add esp, 0xc
call fcn.004711ad
test eax, eax
je 0x492057
mov ecx, dword [esp + 0xc]
push ebx
push dword [esp + 0x28]
push dword [esp + 0x20]
push 0x22
pop edx
call fcn.00460e33
add esp, 0xc
cmp dword [esp + 0x1c], ebx
je 0x49207a
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
movzx eax, ax
add eax, dword [esp + 0x1c]
movzx edx, cx
mov ecx, dword [esp + 0x30]
push eax
call fcn.00490b81
pop ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
movzx eax, cx
mov ecx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x58], edx
call fcn.0046fc18
xor ecx, ecx
inc ecx
cmp eax, ecx
jg 0x4920af
mov edx, dword [esp + 0x5c]
mov ecx, edi
call fcn.00490aaa
mov edx, dword [esp + 0x58]
xor ecx, ecx
inc ecx
jmp 0x4920b3
mov dword [esp + 0x28], ecx
mov al, bl
mov dword [esp + 0x30], ecx
jmp 0x491e9c
mov dword [esp + 0x10], ecx
jmp 0x4920eb
cmp byte [esp + 0x6f], bl
je 0x4920eb
movzx eax, cx
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
push ebx
push eax
push ebx
push 0x50
pop edx
call fcn.00460e33
add esp, 0xc
mov dword [esp + 0x10], ebx
inc dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
call fcn.0044a0d4
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x74]
call fcn.0044a0d4
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x88]
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x492143
mov edx, dword [esp + 0x44]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push dword [esp + 0x2c]
push dword [esp + 0x60]
movzx edx, byte [eax + edx*2 + 0x622070]
call fcn.00461001
mov ecx, dword [esp + 0x1c]
add esp, 0x10
cmp dword [esp + 0x38], ebx
jne 0x492273
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0xc]
test byte [eax + 0x24], 0x20
jne 0x4921d3
mov eax, dword [esp + 0x48]
movzx eax, word [eax + 0x28]
test eax, 0x400
jne 0x492190
test eax, 0x1000
mov eax, dword [esp + 0x48]
je 0x49217a
cmp byte [eax + 0x2d], 1
je 0x492190
push dword [esp + 0x54]
mov ecx, eax
push dword [esp + 0x40]
call fcn.004913a1
pop ecx
pop ecx
jmp 0x492273
inc dword [esi + 0x2c]
mov edx, 0x81
mov esi, dword [esi + 0x2c]
push ebx
push esi
push dword [esp + 0x5c]
call fcn.00460e33
mov edx, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x50]
push esi
push 0xffffffffffffffff
call fcn.0047255d
mov ecx, dword [esp + 0x14]
push esi
push ebx
push dword [esp + 0x4c]
push 0x21
pop edx
call fcn.00460e33
add esp, 0x14
jmp 0x492273
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x3c], edx
je 0x492277
mov ecx, eax
call fcn.004776c9
mov ecx, esi
mov dword [esp + 0x38], eax
movzx edx, word [eax + 0x32]
call fcn.0047461f
mov dword [esp + 0x10], eax
xor edx, edx
mov eax, dword [esp + 0x38]
mov esi, ebx
movzx eax, word [eax + 0x32]
mov ecx, eax
cmp dx, ax
jae 0x492251
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x38]
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x40]
mov dx, word [edx + esi*2]
call fcn.004776e1
movsx ecx, ax
mov eax, dword [esp + 0x10]
add eax, esi
push eax
push ecx
push dword [esp + 0x5c]
mov ecx, edi
push 0x62
pop edx
call fcn.00460e33
movzx ecx, word [ebx + 0x32]
add esp, 0xc
inc esi
cmp esi, ecx
jl 0x492216
mov edi, dword [esp + 0x70]
xor ebx, ebx
movzx eax, cx
mov ecx, dword [esp + 0xc]
push eax
push dword [esp + 0x14]
push dword [esp + 0x88]
push dword [esp + 0x48]
push 0x1e
pop edx
call fcn.00461001
add esp, 0x10
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x2c]
test dword [ecx + 0x24], 0x1000
je 0x49228a
mov byte [edi + 0x2d], 0xa2
jmp 0x492297
cmp dword [esp + 0x44], 0
sete al
add al, 6
mov byte [edi + 0x2d], al
mov dword [edi + 0x30], edx
xor edx, edx
mov al, byte [ecx + 0x26]
inc edx
and al, dl
mov byte [edi + 0x2e], al
test byte [ecx + 0x24], 0xf
jne 0x4928c9
mov byte [edi + 0x2f], dl
jmp 0x4928c9
test edx, 0x2000
je 0x492883
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
inc eax
inc dword [esi + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], ebx
call fcn.00461058
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], ebx
mov edx, dword [ecx + 0x10]
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], edx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
mov byte [edi + 0x2d], 0x49
mov dword [edi + 0x30], ecx
mov cl, byte [eax + 0x2a]
cmp cl, 1
jbe 0x492429
movzx eax, cl
sub eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
dec eax
mov dword [esp + 0x38], eax
imul eax, eax, 0x50
push ebx
add eax, 0x58
push eax
test ecx, ecx
je 0x49235e
call fcn.0044a313
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x49236b
call fcn.00449dfc
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x492382
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
jmp 0x492b0f
mov edx, dword [esp + 0x38]
lea edi, [ecx + 8]
mov esi, dword [esp + 0x14]
push 0x14
lea eax, [edx + 1]
movzx eax, al
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [esp + 0x4c]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, 8
inc eax
mov dword [esp + 0x24], ecx
cmp edx, eax
jl 0x4923ec
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x70]
add ebx, 0x58
add eax, 0x7c
mov dword [esp + 0x38], eax
movzx eax, byte [eax]
mov edi, ebx
imul esi, eax, 0x50
add ebx, 0x50
mov eax, dword [esp + 0x38]
push 0x14
add eax, 0x50
mov dword [esp + 0x3c], eax
add esi, ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
sub edx, 1
jne 0x4923c4
xor ebx, ebx
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x48]
test byte [ecx + 0x28], 0x10
jne 0x49247a
push 0x20
pop eax
test byte [edx + 0x24], al
jne 0x492432
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0xc]
inc eax
push ebx
push eax
push ebx
push 0x50
pop edx
mov dword [esp + 0x4c], eax
mov dword [esi + 0x2c], eax
call fcn.00460e33
add esp, 0xc
jmp 0x49246f
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x4923f8
mov ecx, edx
call fcn.004776c9
mov esi, eax
mov eax, dword [esp + 0x50]
push ebx
mov edx, dword [eax + 0x28]
mov dword [esp + 0x44], edx
lea ecx, [edx + 1]
mov dword [eax + 0x28], ecx
movzx ecx, word [esi + 0x32]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0x6c
pop edx
call fcn.00460e33
add esp, 0xc
mov edx, esi
mov esi, dword [esp + 0x50]
mov ecx, esi
call fcn.0046154b
mov eax, dword [esi + 0x2c]
inc eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0xc]
push ebx
push dword [esp + 0x5c]
push ebx
push 0x4d
pop edx
call fcn.00460e33
mov dword [esp + 0x88], eax
add esp, 0xc
mov eax, dword [esp + 0x78]
mov edx, ebx
cmp dword [eax + 0xc], 1
jle 0x49253f
mov dword [esp + 0x38], edx
mov ecx, ebx
mov dword [esp + 0x24], ebx
mov esi, ebx
mov eax, dword [eax + 0x14]
add eax, ecx
mov edi, dword [eax]
mov dword [esp + 0x28], edi
cmp eax, dword [esp + 0x2c]
je 0x492502
test byte [edi + 4], 1
jne 0x492502
test byte [eax + 0xa], 6
jne 0x492502
mov edi, 0x1fff
test word [eax + 0xc], di
je 0x492502
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
push ebx
push ebx
call fcn.0047069f
mov ecx, dword [esp + 0x7c]
mov edx, esi
push eax
call fcn.0047035f
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [esp + 0x78]
inc edx
add ecx, 0x30
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ecx
cmp edx, dword [eax + 0xc]
jl 0x4924b2
mov edi, dword [esp + 0x70]
mov edx, esi
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x50]
test edx, edx
je 0x49253f
push edx
push ebx
mov edx, 0x11c
mov ecx, esi
call fcn.0047023e
pop ecx
mov edx, eax
pop ecx
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x48]
mov ecx, 0x400
push 0x20
mov ax, word [eax + 0x28]
and ax, cx
pop ecx
or ax, cx
mov ecx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x38], eax
mov eax, ebx
mov dword [esp + 0x28], eax
cmp dword [ecx + 0xc], ebx
jle 0x492801
or dword [esp + 0x90], 0xffffffff
mov edi, dword [esp + 0x3c]
imul eax, eax, 0x30
add eax, dword [ecx + 0x14]
cmp dword [eax + 0x14], edi
mov edi, dword [esp + 0x70]
je 0x49259d
mov esi, 0x400
test word [eax + 0xc], si
mov esi, dword [esp + 0x50]
je 0x4927eb
mov eax, dword [eax]
mov dword [esp + 0x60], ebx
test edx, edx
je 0x4925b4
xor ecx, ecx
inc ecx
test byte [eax + 4], cl
jne 0x4925b4
mov dword [edx + 0xc], eax
mov eax, edx
push dword [esp + 0x44]
mov edx, dword [esp + 0x20]
mov ecx, esi
push dword [esp + 0x3c]
push ebx
push ebx
push eax
call fcn.00498696
add esp, 0x14
mov dword [esp + 0x98], eax
test eax, eax
je 0x4927e7
movzx ecx, byte [edi + 0x2c]
mov edx, dword [esp + 0x1c]
push ebx
push ecx
push dword [esp + 0x70]
lea ecx, [eax + 0x2f0]
push ecx
mov ecx, esi
call fcn.004907fc
mov eax, dword [esp + 0x58]
add esp, 0x10
test byte [eax + 0x28], 0x10
jne 0x492751
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x90]
push 0x20
mov eax, dword [eax + 0xc]
dec eax
cmp ecx, eax
mov eax, dword [esp + 0x68]
cmove ecx, edx
mov dword [esp + 0x28], ecx
pop ecx
test byte [eax + 0x24], cl
jne 0x492666
push ebx
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x44]
push edx
mov edx, eax
call fcn.0047270b
push dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push eax
push ebx
push dword [esp + 0x5c]
push 0x40
pop edx
call fcn.00461001
add esp, 0x20
mov dword [esp + 0x60], eax
jmp 0x492751
mov ecx, eax
call fcn.004776c9
mov ecx, esi
mov dword [esp + 0x8c], eax
movzx edx, word [eax + 0x32]
mov dword [esp + 0x14], edx
call fcn.0047461f
mov dword [esp + 0x34], eax
mov dword [esp + 0x94], ebx
test edx, edx
je 0x4926cc
mov edi, edx
mov edx, dword [esp + 0x64]
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x8c]
push ecx
push dword [esp + 0x40]
mov ecx, esi
mov eax, dword [eax + 4]
movsx eax, word [eax + ebx*2]
push eax
call fcn.004727be
mov eax, dword [esp + 0x40]
add esp, 0xc
inc ebx
cmp ebx, edi
jl 0x492694
mov edi, dword [esp + 0x70]
xor ebx, ebx
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x24], 0
je 0x4926f4
mov ecx, dword [esp + 0xc]
push edx
push eax
push ebx
push dword [esp + 0x4c]
push 0x1f
pop edx
call fcn.00461001
add esp, 0x10
mov dword [esp + 0x60], eax
cmp dword [esp + 0x24], 0
jl 0x492741
push dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x3c]
push 0x64
pop edx
call fcn.00460e33
mov ecx, dword [esp + 0x18]
add esp, 0xc
push dword [esp + 0x14]
push dword [esp + 0x38]
push dword [esp + 0x18]
push dword [esp + 0x4c]
push 0x7e
pop edx
call fcn.00461001
add esp, 0x10
cmp dword [esp + 0x24], 0
je 0x492741
mov ecx, dword [esp + 0xc]
push 0x10
pop edx
call fcn.004612b5
push dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, esi
call fcn.00474655
pop ecx
mov ecx, dword [esp + 0xc]
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x60]
push 0xe
pop edx
call fcn.00460e33
mov eax, dword [esp + 0x6c]
add esp, 0xc
test eax, eax
je 0x492785
mov ecx, dword [esp + 0xc]
mov edx, eax
call fcn.00461566
mov ecx, dword [ecx + 0x88]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x54]
push 1
pop ecx
cmp byte [edx + 0x2e], 0
cmovne eax, ecx
mov ecx, dword [edx + 0x330]
mov dword [esp + 0x54], eax
test dword [ecx + 0x24], 0x200
je 0x4927dc
cmp dword [esp + 0x28], 0
je 0x4927bd
mov eax, dword [esp + 0x30]
cmp dword [ecx + 0x20], eax
jne 0x4927dc
mov eax, dword [esp + 0x64]
test byte [eax + 0x24], 0x20
je 0x4927d3
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x38]
and al, 3
cmp al, 2
je 0x4927dc
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x30], eax
jmp 0x4927e0
mov dword [esp + 0x30], ebx
mov ecx, edx
call fcn.00498f2d
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ecx + 0xc]
jl 0x492577
mov eax, dword [esp + 0x30]
mov dword [edi + 0x38], eax
test eax, eax
je 0x492813
mov eax, dword [esp + 0x44]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x492829
mov ecx, dword [esp + 0x74]
mov edx, eax
mov dword [eax + 0xc], ebx
call fcn.00470584
mov esi, dword [esp + 0xc]
mov ecx, esi
mov edx, dword [esp + 0x7c]
call fcn.00461566
mov ecx, dword [esi + 0x88]
mov dword [eax + 4], ecx
mov ecx, esi
mov edx, dword [edi + 0xc]
call fcn.00460e95
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.0046109a
mov eax, dword [esp + 0x48]
xor ecx, ecx
inc ecx
cmp byte [eax + 0x2a], cl
jbe 0x49286f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
call fcn.0044a0d4
cmp dword [esp + 0x54], 0
jne 0x4928c9
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.00490aaa
jmp 0x4928c9
push 0x20
pop eax
test byte [esp + 0x7c], al
je 0x492892
mov byte [edi + 0x2d], 0xa2
jmp 0x4928c9
mov ecx, dword [esp + 0x44]
push ebx
push dword [esp + 0x1c]
mov al, byte [ecx + 0x62183c]
movzx edx, byte [ecx + 0x6216dc]
mov ecx, dword [esp + 0x14]
mov byte [edi + 0x2d], al
mov eax, dword [esp + 0x44]
push eax
mov dword [edi + 0x30], eax
call fcn.00460e33
add esp, 0xc
inc eax
mov dword [edi + 0x34], eax
xor eax, eax
inc eax
mov byte [edi + 0x2f], al
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
mov dword [esp + 0x38], edx
test edx, edx
jle 0x4929a3
movzx eax, word [esi + 0xa]
mov dword [esp + 0x18], ebx
test al, 6
jne 0x49298f
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [edi + 0x48]
and eax, dword [edi + 0x4c]
or ecx, eax
je 0x49290e
mov eax, dword [esp + 0x48]
xor ecx, ecx
inc ecx
mov byte [eax + 0x2e], cl
jmp 0x49298f
mov eax, dword [esi]
mov dword [esp + 0x7c], eax
cmp dword [edi], ebx
je 0x492920
xor ecx, ecx
inc ecx
test byte [eax + 4], cl
je 0x49298f
movzx ecx, word [esi + 0xa]
test ecx, 0x200
je 0x492952
mov edx, dword [edi + 0x24]
mov eax, edx
mov ecx, dword [esp + 0xc]
push ebx
shr eax, 1
push ebx
push eax
xor eax, eax
inc eax
and edx, eax
add edx, 0x15
call fcn.00460e33
mov dword [esp + 0x24], eax
add esp, 0xc
mov eax, dword [esp + 0x7c]
push 0x10
push dword [esp + 0x84]
push eax
push dword [esp + 0x5c]
call fcn.00473c8b
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je 0x492984
mov ecx, dword [esp + 0xc]
mov edx, eax
call fcn.00461566
mov ecx, dword [ecx + 0x88]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x38]
push 4
pop eax
or word [esi + 0xa], ax
dec edx
add esi, 0x30
mov dword [esp + 0x38], edx
test edx, edx
jg 0x4928df
mov eax, dword [esp + 0x78]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
jmp 0x492a70
test byte [esi + 0xa], 6
jne 0x492a6c
movzx eax, word [esi + 0xc]
test al, 0x82
push 0xb
pop edi
setne cl
bt ax, di
mov edi, dword [esp + 0x70]
setb al
test al, cl
je 0x492a6c
mov ecx, dword [esp + 0x3c]
cmp dword [esi + 0x14], ecx
jne 0x492a6c
cmp dword [edi], ebx
jne 0x492a6c
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [esp + 0x78]
push ebx
push 0x83
push dword [esp + 0x8c]
mov dword [esp + 0x88], eax
push dword [esp + 0x94]
push dword [esi + 0x1c]
call fcn.0049494c
add esp, 0x14
test eax, eax
je 0x492a68
test byte [eax + 0xa], 4
jne 0x492a68
mov esi, dword [eax]
lea edi, [esp + 0x9c]
mov eax, dword [esp + 0x7c]
push 0xc
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xc]
push 0x10
push dword [esp + 0x84]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x5c]
call fcn.00473c8b
mov edi, dword [esp + 0x80]
add esp, 0x10
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
dec edx
add esi, 0x30
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
test edx, edx
jg 0x4929ae
cmp dword [edi], 0
je 0x492b09
mov ecx, dword [esp + 0xc]
push ebx
push dword [edi]
mov eax, dword [ecx + 0x88]
mov dword [edi + 0x1c], eax
xor eax, eax
inc eax
push eax
push 0x4d
pop edx
call fcn.00460e33
mov esi, dword [esp + 0x5c]
add esp, 0xc
mov ecx, esi
call fcn.004727f3
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x18], edx
cmp dword [eax + 0xc], ebx
jle 0x492b09
test byte [edx + 0xa], 6
jne 0x492afc
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, dword [edi + 0x48]
and eax, dword [edi + 0x4c]
or ecx, eax
jne 0x492af8
push 0x10
push dword [esp + 0x84]
push dword [edx]
push esi
call fcn.00473c8b
mov edx, dword [esp + 0x28]
add esp, 0x10
push 4
pop eax
or word [edx + 0xa], ax
mov eax, dword [esp + 0x78]
inc ebx
add edx, 0x30
mov dword [esp + 0x18], edx
cmp ebx, dword [eax + 0xc]
jl 0x492ac3
mov eax, dword [edi + 0x48]
mov edx, dword [edi + 0x4c]
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c233c
mov esp, ebp
pop ebp
ret