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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
mov esi, edx
mov edx, dword [ebp + 0x30]
push edi
mov edi, ecx
mov dword [esp + 0x3c], edx
xor edx, edx
mov dword [esp + 0x44], esi
test byte [esi + 0x1c], 0x80
mov dword [esp + 0x54], edi
mov eax, dword [edi]
mov ebx, dword [edi + 8]
mov dword [esp + 0x40], eax
movsx eax, word [esi + 0x22]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x60], edx
mov byte [esp + 0x1b], dl
mov dword [esp + 0x78], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x38], eax
jne 0x4969ae
mov dword [esp + 0x2c], edx
mov dword [esp + 0x74], 1
jmp 0x4969c1
mov ecx, esi
call fcn.0048ac9d
mov dword [esp + 0x2c], eax
movzx eax, word [eax + 0x32]
mov dword [esp + 0x74], eax
test dword [esi + 0x1c], 0x800
mov cl, byte [ebp + 0x20]
mov dword [esp + 0x50], ecx
je 0x496c1e
mov eax, edx
mov dword [esp + 0xc], edx
mov ecx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
and dword [esp + 0x30], 0
cmp dword [esp + 0x38], 0
jle 0x496b29
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov edx, dword [esi + 4]
add edx, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [edx + 4]
and ecx, 0xf
mov dword [esp + 0x20], ecx
je 0x496b05
movsx eax, word [esi + 0x20]
cmp dword [esp + 0x30], eax
je 0x496b01
movzx eax, word [edx + 0xe]
and eax, 0x60
mov dword [esp + 0x34], eax
je 0x496a45
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x496a45
mov edx, dword [esp + 0xc]
inc edx
mov dword [esp + 0xc], edx
jmp 0x496b09
cmp dword [ebp + 0x2c], 0
mov eax, dword [esp + 0x30]
je 0x496a67
mov edi, dword [ebp + 0x2c]
cmp dword [edi + eax*4], 0
mov edi, dword [esp + 0x54]
jge 0x496a67
cmp dword [esp + 0x34], 0
je 0x496b01
cmp byte [esp + 0x50], 0xb
je 0x496a96
mov ecx, dword [esp + 0x50]
movzx ecx, cl
mov dword [esp + 0x20], ecx
cmp ecx, 5
jne 0x496aa2
cmp dword [esp + 0x10], 0
jne 0x496a8d
xor ecx, ecx
cmp word [edx + 0xc], cx
jne 0x496ab0
push 2
pop ecx
mov dword [esp + 0x20], ecx
jmp 0x496ab0
cmp ecx, 0xb
jne 0x496a79
push 2
pop ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x10], 0
je 0x496ab0
cmp dword [esp + 0x34], 0
je 0x496b01
mov edx, eax
mov ecx, esi
call fcn.0048acd5
mov ecx, dword [ebp + 0x14]
cwde
inc ecx
add ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
sub eax, 1
je 0x496bd0
sub eax, 1
je 0x496bbf
sub eax, 1
je 0x496bd0
dec eax
sub eax, 1
je 0x496b74
xor eax, eax
push eax
push dword [ebp + 0x24]
push ecx
push 0x32
pop edx
mov ecx, ebx
call fcn.0046e343
add esp, 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x1c], 0x10
inc ecx
cmp ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
jl 0x4969fb
mov ecx, dword [esp + 0x28]
test edx, edx
jne 0x496b35
test ecx, ecx
je 0x496c1a
test eax, eax
jne 0x496c1a
inc eax
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x4969e5
test byte [esi + 0x1c], 0x60
je 0x4969e5
mov edx, dword [ebp + 0x14]
mov ecx, edi
push esi
lea edx, [edx + 1]
call fcn.0049572d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop ecx
mov ecx, dword [esp + 0x28]
jmp 0x4969e5
xor eax, eax
push eax
push eax
push ecx
push 0x33
pop edx
mov ecx, ebx
call fcn.0046e343
mov ecx, dword [esp + 0x50]
add esp, 0xc
inc dword [esp + 0x28]
mov esi, eax
mov edx, dword [esp + 0x14]
push dword [esp + 0x34]
call fcn.0048a78f
mov edx, eax
mov ecx, edi
call fcn.004839cd
pop ecx
mov edx, esi
mov ecx, ebx
call fcn.0046ebfb
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
mov esi, dword [esp + 0x44]
jmp 0x496b01
mov eax, dword [edi + 0x80]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov eax, dword [esp + 0x14]
push dword [eax]
push dword [esi]
push str._s._s
push dword [esp + 0x4c]
call fcn.00453174
push dword [esp + 0x44]
mov ecx, ebx
mov esi, eax
push dword [esp + 0x34]
push 0x513
push 0x45
pop edx
call fcn.0046e343
add esp, 0x1c
mov edx, esi
mov ecx, ebx
push 0xfffffffffffffffa
call fcn.0046ebaf
pop ecx
xor edx, edx
mov ecx, ebx
inc edx
call fcn.0046e90c
jmp 0x496bb6
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x24], edx
test edx, edx
je 0x496d75
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x20]
and eax, 0x200
or eax, 0
jne 0x496d75
mov eax, dword [ebp + 0x14]
cmp byte [esp + 0x50], 0xb
not eax
mov dword [edi + 0x34], eax
movzx eax, cl
push 2
pop ecx
cmovne ecx, eax
xor eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
cmp dword [edx], eax
jle 0x496d70
lea eax, [edx + 0xc]
mov dword [esp + 0x1c], eax
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax - 4]
mov dword [esp + 0x84], ecx
test edx, edx
je 0x496c95
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.004968d9
pop ecx
test eax, eax
je 0x496d4e
cmp byte [esp + 0x1b], 0
jne 0x496cb0
mov eax, dword [ebp + 0x14]
mov edx, esi
inc eax
mov ecx, ebx
push eax
call fcn.00495563
pop ecx
mov byte [esp + 0x1b], 1
dec dword [edi + 0x38]
xor eax, eax
mov edx, dword [esp + 0x84]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x14], ecx
test edx, edx
je 0x496cd8
mov ecx, dword [esp + 0x40]
push eax
push eax
call fcn.0047fdbc
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x34], eax
cmp byte [edx + 0x57], 0
jne 0x496cf3
push 0x10
push ecx
push eax
push edi
call fcn.00483cc9
add esp, 0x10
mov edx, dword [esp + 0x34]
test edx, edx
je 0x496d04
mov ecx, dword [esp + 0x40]
call fcn.0047fc48
mov eax, dword [esp + 0x28]
push 4
pop ecx
cmp eax, ecx
jne 0x496d1b
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.0046e3f7
jmp 0x496d43
push 2
pop ecx
cmp eax, 5
mov edx, 0x113
push 3
cmove eax, ecx
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
push dword [ecx]
mov ecx, edi
push eax
call fcn.0048f5ab
add esp, 0x10
mov edx, dword [esp + 0x14]
mov ecx, ebx
call fcn.0046e744
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
inc edx
mov eax, dword [esp + 0x1c]
add eax, 0x14
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
cmp edx, dword [ecx]
jl 0x496c71
xor eax, eax
mov dword [edi + 0x34], eax
jmp 0x496d77
xor eax, eax
mov edx, dword [ebp + 0x30]
mov ecx, dword [esi + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
test edx, edx
je 0x496ea0
cmp dword [edx], eax
jne 0x496dbe
mov al, byte [edx + 0x14]
xor edx, edx
test al, al
cmovne edx, dword [esp + 0x3c]
setne al
mov dword [ebp + 0x30], edx
lea eax, [eax*2 + 4]
mov dword [esp + 0x50], eax
jmp 0x496ea0
test ecx, ecx
je 0x496ea0
mov ecx, dword [ecx + 0x14]
inc eax
test ecx, ecx
jne 0x496dc6
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
imul eax, eax, 0xa
push ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], 1
push eax
call fcn.00451699
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x497ac0
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 0x30]
lea ebx, [ecx + eax*8]
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [edx + 0x18], ecx
mov dword [esp + 0x14], eax
cmp dword [edx], eax
je 0x496e60
cmp dword [edx + 0x1c], 0
je 0x496e59
mov ecx, eax
mov eax, dword [esi + 8]
jmp 0x496e2d
cmp eax, dword [edx + 0x1c]
je 0x496e31
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x496e24
cmp byte [ecx + ebx], 0
jne 0x496e57
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
mov byte [ecx + ebx], 1
mov dword [esi + edi*8], eax
mov eax, edi
mov edi, esi
mov esi, dword [esp + 0x44]
mov dword [edi + eax*8 + 4], ecx
inc eax
mov dword [esp + 0x14], eax
xor eax, eax
mov edx, dword [edx + 0x10]
test edx, edx
jne 0x496e13
mov ebx, dword [esp + 0x88]
mov ecx, eax
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x54]
test eax, eax
je 0x496ea0
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
lea edx, [ebx + edx*8]
mov ebx, dword [esp + 0x24]
cmp byte [ecx + ebx], 0
jne 0x496e91
mov dword [edx], eax
mov dword [edx + 4], ecx
add edx, 8
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x496e83
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0x40]
xor edx, edx
mov ecx, dword [eax + 0x20]
mov eax, ecx
and eax, 0x6000
or eax, edx
jne 0x496ebe
mov dword [esp + 0x6c], edx
mov dword [esp + 0x5c], edx
jmp 0x496f35
xor eax, eax
and ecx, 0x2000
or ecx, eax
mov edx, esi
push eax
mov ecx, edi
push eax
je 0x496efc
push 0x80
call fcn.004a72dc
add esp, 0xc
mov dword [esp + 0x6c], eax
test eax, eax
jne 0x496f0f
push eax
push eax
mov edx, esi
mov ecx, edi
call fcn.00494bf1
pop ecx
pop ecx
test eax, eax
jne 0x496f0f
mov dword [esp + 0x5c], eax
jmp 0x496f35
mov dword [esp + 0x74], eax
call fcn.00494bf1
mov dword [esp + 0x64], eax
pop ecx
pop ecx
test eax, eax
je 0x496f35
inc dword [edi + 0x2c]
xor ecx, ecx
mov eax, dword [edi + 0x2c]
push ecx
push eax
push ecx
push 0x47
pop edx
mov ecx, ebx
mov dword [esp + 0x68], eax
call fcn.0046e343
add esp, 0xc
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x68], eax
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x24], 6
je 0x4971ab
cmp dword [esp + 0x2c], 0
jne 0x4971ab
dec dword [edi + 0x38]
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 0x2a]
cmp cl, 0xb
je 0x496f72
movzx edx, cl
mov dword [esp + 0x20], edx
jmp 0x496f7f
push 2
cmp eax, 0xb
pop ecx
cmove eax, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x496fd4
mov edx, ecx
xor eax, eax
cmp dword [edx], eax
je 0x496f9a
cmp dword [edx + 0x1c], eax
je 0x496f9a
mov edx, dword [edx + 0x10]
test edx, edx
jne 0x496f8a
mov dword [esp + 0x60], edx
test edx, edx
je 0x496fb8
cmp byte [edx + 0x14], 0
push 4
pop eax
cmovne eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
cmp edx, ecx
je 0x496fd8
xor eax, eax
push eax
push eax
push eax
push 9
pop edx
mov ecx, ebx
call fcn.0046e343
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], ecx
jmp 0x496fdc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
cmp eax, 5
jne 0x497007
cmp byte [esp + 0x50], al
je 0x497007
xor eax, eax
cmp dword [esi + 8], eax
je 0x497007
test ecx, ecx
jne 0x497007
push eax
push eax
push eax
push 9
pop edx
mov ecx, ebx
call fcn.0046e343
add esp, 0xc
inc eax
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x497031
push eax
push dword [esp + 0x20]
mov ecx, ebx
push dword [ebp + 0x14]
push 0x35
pop eax
mov edx, eax
call fcn.0046e343
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0046e90c
push dword [ebp + 0x14]
mov ecx, ebx
push dword [esp + 0x20]
push dword [ebp + 0xc]
push 0x1f
pop edx
call fcn.0046e343
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov eax, edx
sub eax, 1
je 0x497071
sub eax, 1
je 0x497071
sub eax, 1
je 0x497071
sub eax, 1
je 0x4970c9
sub eax, 1
je 0x4970d5
sub eax, 1
je 0x4970b5
push 2
pop eax
mov edx, eax
push esi
mov ecx, edi
call fcn.0048f710
pop ecx
mov edx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.0046e744
mov edx, dword [ebp + 0x30]
test edx, edx
je 0x497174
cmp dword [esp + 0x60], edx
je 0x497174
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 9
pop edx
call fcn.0046e343
add esp, 0xc
mov dword [esp + 0x78], eax
jmp 0x4971ab
push dword [ebp + 0xc]
mov edx, dword [ebp + 0x30]
xor eax, eax
push eax
push esi
mov ecx, edi
call fcn.004a9e3b
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.0046e3f7
jmp 0x49707a
cmp dword [esp + 0x5c], 0
je 0x497137
mov eax, dword [edi + 0x80]
mov ecx, edi
push 0xffffffffffffffff
push 1
test eax, eax
mov edx, esi
push 5
cmovne ecx, eax
xor eax, eax
push eax
push 1
push dword [ebp + 0x14]
mov byte [ecx + 0x14], 1
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x8c]
call fcn.00490e0f
add esp, 0x24
xor eax, eax
mov ecx, ebx
push eax
push 1
push dword [esp + 0x64]
push 0x56
pop edx
call fcn.0046e343
add esp, 0xc
mov dword [esp + 0x80], 1
jmp 0x497164
xor edx, edx
cmp dword [esi + 8], edx
je 0x497164
mov eax, dword [edi + 0x80]
mov ecx, edi
test eax, eax
push 0xffffffffffffffff
push edx
push dword [ebp + 0x10]
cmovne ecx, eax
mov edx, esi
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.004910cb
add esp, 0x10
mov dword [esp + 0x8c], 1
jmp 0x49707a
cmp dword [esp + 0x7c], 0
je 0x4971ae
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 9
pop edx
call fcn.0046e343
mov edx, dword [esp + 0x88]
add esp, 0xc
mov ecx, ebx
mov dword [esp + 0x98], eax
lea edx, [edx - 1]
call fcn.0046ebfb
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x30]
cmp dword [esp + 0x34], 0
je 0x4971c4
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x4971d0
xor eax, eax
mov ecx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4979c0
mov esi, dword [esp + 0x68]
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 8]
cmp dword [esi + ecx*4], 0
mov esi, dword [esp + 0x44]
je 0x497970
test edx, edx
je 0x497237
mov ecx, edx
cmp dword [ecx], 0
je 0x497218
cmp dword [ecx + 0x1c], eax
je 0x497218
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x497207
mov eax, dword [esp + 0x70]
mov dword [esp + 0x60], ecx
test eax, eax
je 0x497237
cmp ecx, edx
jne 0x497237
mov edx, eax
mov ecx, ebx
call fcn.0046ebfb
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
mov eax, dword [edi + 0x38]
dec eax
cmp byte [esp + 0x1b], 0
mov dword [esp + 0x58], eax
mov dword [edi + 0x38], eax
jne 0x49725d
mov eax, dword [ebp + 0x14]
mov edx, esi
inc eax
mov ecx, ebx
push eax
call fcn.00495563
pop ecx
mov byte [esp + 0x1b], 1
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x10]
add eax, edx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
not eax
mov dword [esp + 0x3c], eax
xor eax, eax
cmp dword [ecx + 0x24], eax
je 0x4972bd
push eax
mov eax, dword [ebp + 8]
mov ecx, ebx
push dword [eax + edx*4]
xor eax, eax
push eax
push 0x4b
pop edx
call fcn.0046e343
mov eax, dword [esp + 0x48]
add esp, 8
mov dword [edi + 0x34], eax
mov ecx, edi
mov eax, dword [esp + 0x10]
push dword [esp + 0x5c]
mov edx, dword [eax + 0x24]
call fcn.00484304
mov edx, dword [esp + 0x18]
xor eax, eax
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x24], 0
mov eax, dword [eax + edx*4]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x14], eax
movzx eax, word [ecx + 0x34]
mov edx, eax
cmp word [esp + 0x24], ax
jae 0x4973a1
mov edx, dword [esp + 0x64]
inc edx
xor eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x14]
mov eax, dword [ecx + 4]
movzx eax, word [eax + esi*2]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x48], eax
cwde
cmp eax, 0xfffffffe
jne 0x49732d
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [ecx + 0x28]
mov ecx, edi
mov edx, dword [edx + eax + 8]
call fcn.004839cd
xor eax, eax
pop ecx
mov dword [edi + 0x34], eax
jmp 0x49736f
cmp eax, 0xffffffff
je 0x49735b
mov edi, dword [esp + 0x48]
cmp di, word [esi + 0x20]
mov edi, dword [esp + 0x54]
je 0x49735b
xor eax, eax
mov ecx, esi
push eax
push edx
mov edx, dword [esp + 0x50]
call fcn.0048acd5
mov ecx, dword [ebp + 0x14]
cwde
inc ecx
add eax, ecx
push eax
push 0x51
jmp 0x497364
xor eax, eax
push eax
push edx
push dword [ebp + 0x14]
push 0x52
pop edx
mov ecx, ebx
call fcn.0046e343
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x4c]
inc dword [esp + 0x14]
add dword [esp + 0x1c], 0x14
inc edx
movzx eax, word [ecx + 0x34]
mov dword [esp + 0x24], eax
movzx eax, ax
mov dword [esp + 0x4c], edx
cmp dword [esp + 0x14], eax
jl 0x4972f2
mov eax, dword [esp + 0x24]
movzx edx, ax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
movzx eax, dx
mov ecx, ebx
push eax
mov eax, dword [esp + 0x6c]
inc eax
push eax
push 0x61
pop edx
call fcn.0046e343
mov ecx, dword [esp + 0x18]
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x4973e8
cmp dword [esp + 0x2c], ecx
jne 0x4973e8
cmp byte [ebp + 0x1c], 0
jne 0x4973e8
mov edx, dword [esp + 0x58]
mov ecx, ebx
call fcn.0046e744
jmp 0x49796c
movzx eax, byte [ecx + 0x36]
test eax, eax
je 0x4973d8
mov edx, dword [esp + 0x50]
cmp dl, 0xb
je 0x4973fe
movzx eax, dl
jmp 0x497407
push 2
cmp eax, 0xb
pop edx
cmove eax, edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], eax
test edx, edx
je 0x497424
cmp byte [edx + 0x14], 0
push 6
pop eax
push 4
pop edx
cmove eax, edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x10], 0
jne 0x497498
xor edx, edx
cmp dword [ecx + 0x14], edx
jne 0x497498
cmp dword [esp + 0x2c], ecx
jne 0x497498
cmp eax, 5
jne 0x497498
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x20]
and eax, 0x2000
mov dword [esp + 0x90], eax
je 0x49746b
push edx
push edx
push 0x80
mov edx, esi
mov ecx, edi
call fcn.004a72dc
add esp, 0xc
test eax, eax
jne 0x497498
xor edx, edx
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x20]
and eax, 0x4000
mov dword [esp + 0x90], eax
je 0x4973d8
cmp dword [esi + 0x30], edx
jne 0x497498
mov ecx, esi
call fcn.00494443
test eax, eax
je 0x4973d8
mov eax, dword [esp + 0xc]
mov ecx, ebx
movzx eax, word [eax + 0x32]
push eax
mov eax, dword [esp + 0x68]
inc eax
push eax
push dword [esp + 0x60]
push dword [esp + 0x44]
push 0x1b
pop edx
call fcn.0046e39c
mov dword [esp + 0x2c], eax
add esp, 0x10
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x2c]
jne 0x4974d1
mov ecx, dword [esp + 0x64]
inc ecx
jmp 0x4974e2
mov edx, dword [esp + 0x74]
mov ecx, edi
call fcn.004852e9
mov ecx, eax
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x48], ecx
test edx, edx
jne 0x4974f8
cmp dword [esp + 0x14], 5
jne 0x4976a8
test byte [esi + 0x1c], 0x80
jne 0x497549
xor eax, eax
mov edx, 0x8e
push eax
push ecx
push dword [esp + 0x40]
mov ecx, ebx
call fcn.0046e343
mov edx, dword [ebp + 0x18]
add esp, 0xc
test edx, edx
je 0x4976a8
push edx
push dword [esp + 0x5c]
mov ecx, ebx
push dword [esp + 0x50]
push 0x35
pop eax
mov edx, eax
call fcn.0046e343
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0046e90c
jmp 0x4976a5
mov edx, dword [esp + 0x2c]
cmp eax, edx
je 0x4975ab
xor edi, edi
cmp di, word [edx + 0x32]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x54]
jae 0x4975ab
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x24]
mov edx, dword [edx + 4]
lea eax, [ecx + esi]
push eax
mov ecx, edi
mov dx, word [edx + esi*2]
call fcn.0048acb5
cwde
mov ecx, ebx
push eax
push dword [esp + 0x40]
push 0x5e
pop edx
call fcn.0046e343
mov edx, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x48]
inc esi
movzx eax, word [edx + 0x32]
cmp esi, eax
jl 0x497569
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
cmp dword [ebp + 0x18], 0
je 0x4976a5
movzx ecx, word [edx + 0x32]
mov eax, dword [eax + 0x38]
mov edx, dword [ebx + 0x6c]
and al, 3
mov ebx, dword [esp + 0x88]
add edx, ecx
cmp al, 2
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x3c], 0x34
lea eax, [eax + 1]
cmove edx, eax
xor eax, eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x4976a5
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
mov ecx, edi
mov edx, dword [edx + eax*4]
call fcn.0048fea3
mov edi, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x4c]
push 0x35
mov ecx, dword [edi + 4]
movzx edx, word [ecx + eax*2]
movzx ecx, word [edi + 0x32]
mov edi, dword [esp + 0x40]
dec ecx
cmp eax, ecx
mov dword [esp + 0x40], edi
mov eax, edi
pop edi
cmove eax, edi
cmp dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
cmovne eax, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0x4c]
push 0xfffffffffffffffe
push esi
mov esi, dword [esp + 0x4c]
push eax
mov dword [esp + 0x30], ecx
push ecx
mov ecx, esi
call fcn.0048acd5
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x4c]
inc ecx
cwde
add eax, ecx
mov ecx, ebx
push eax
call fcn.0046e4c2
add esp, 0x14
lea edx, [edi + 0x5b]
mov ecx, ebx
call fcn.0046e90c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
inc ecx
mov dword [esp + 0x4c], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
mov eax, ecx
jl 0x4975fb
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x14]
sub eax, 1
je 0x4978e2
sub eax, 1
je 0x4978e2
sub eax, 1
je 0x4978e2
sub eax, 1
je 0x4978d6
push 2
pop ecx
sub eax, ecx
je 0x4978c0
mov eax, dword [ebx + 0x6c]
sub eax, dword [esp + 0x1c]
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x14], eax
je 0x497705
mov eax, dword [edi + 0x80]
mov ecx, edi
test eax, eax
cmovne ecx, eax
inc dword [esp + 0x80]
mov byte [ecx + 0x14], 1
cmp dword [esp + 0x6c], 0
je 0x497726
test edx, edx
je 0x497726
xor eax, eax
mov edx, 0xa7
push eax
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0046e343
add esp, 0xc
push dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov edx, esi
cmp dword [esp + 0x10], eax
mov ecx, edi
sete al
movzx eax, al
push eax
push 5
xor eax, eax
push eax
push dword [esp + 0x84]
push dword [esp + 0x5c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x8c]
call fcn.00490e0f
add esp, 0x24
cmp dword [esp + 0x6c], 0
je 0x497785
cmp dword [ebp + 0x18], 0
je 0x497785
xor eax, eax
mov edx, 0xa8
push eax
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0046e343
add esp, 0xc
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4978b3
xor ecx, ecx
push ecx
push 1
push eax
push 0x56
pop edx
mov ecx, ebx
call fcn.0046e343
add esp, 0xc
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 9
pop edx
call fcn.0046e343
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, ebx
mov dword [esp + 0x90], eax
call fcn.0046e744
mov eax, dword [esp + 0xc]
xor edx, edx
dec dword [edi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x20], ecx
cmp dword [eax + 0x24], edx
je 0x4977f0
push edx
push ecx
push dword [esp + 0x6c]
mov ecx, ebx
push 0x32
pop edx
call fcn.0046e343
add esp, 0xc
cmp dword [esp + 0x14], 0
jle 0x49788e
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov ecx, ebx
call fcn.0046ebfb
push 5
mov esi, eax
lea edi, [esp + 0xa0]
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x9c]
cmp al, 0x8e
je 0x49786c
mov ecx, dword [esp + 0xa4]
movzx edx, al
test byte [edx + 0x6c1be0], 1
cmovne ecx, dword [esp + 0x20]
shr eax, 8
movsx eax, al
push eax
push dword [esp + 0xb0]
push dword [esp + 0xb0]
push ecx
push dword [esp + 0xb0]
mov ecx, ebx
call fcn.0046e4c2
mov edx, dword [esp + 0xb2]
add esp, 0x14
mov ecx, ebx
call fcn.0046e90c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
dec eax
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
test eax, eax
jg 0x4977ff
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x44]
push dword [esp + 0xc]
mov ecx, edi
push 2
pop eax
mov edx, eax
call fcn.0048f5fe
mov edx, dword [esp + 0x94]
pop ecx
mov ecx, ebx
call fcn.0046ebfb
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
mov dword [esp + 0x8c], 1
jmp 0x4978f2
push dword [esp + 0x38]
mov edx, dword [ebp + 0x30]
mov ecx, edi
push dword [esp + 0x10]
push esi
call fcn.004a9e3b
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, ebx
call fcn.0046e3f7
jmp 0x4978f2
push dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.0048f5fe
pop ecx
mov edx, dword [esp + 0x58]
mov ecx, ebx
call fcn.0046e744
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
inc ecx
cmp eax, ecx
je 0x49791a
push dword [esp + 0x74]
mov edx, eax
mov ecx, edi
call fcn.0048531f
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x49796c
cmp dword [esp + 0x78], 0
je 0x49796c
mov eax, dword [eax + 0x10]
test eax, eax
je 0x497947
xor ecx, ecx
cmp dword [eax], ecx
je 0x497947
cmp dword [eax + 0x1c], ecx
je 0x497947
cmp byte [eax + 0x15], cl
je 0x49796c
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x497932
mov edx, dword [esp + 0x70]
mov ecx, ebx
lea edx, [edx + 1]
call fcn.0046e3f7
mov edx, dword [esp + 0x78]
mov ecx, ebx
call fcn.0046ebfb
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
xor eax, eax
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x34], 0
je 0x4979a0
mov eax, dword [esp + 0x84]
inc eax
mov ecx, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x28]
jge 0x4979c0
mov eax, dword [esp + 0x30]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x4979ac
mov eax, dword [esp + 0x28]
inc ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
test eax, eax
je 0x4979c0
mov edx, dword [ebp + 0x30]
jmp 0x4971f0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4979e5
mov edx, eax
mov ecx, ebx
call fcn.0046e3f7
mov edx, dword [esp + 0x98]
mov ecx, ebx
call fcn.0046ebfb
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
cmp dword [esp + 0x80], 0
je 0x497a79
xor eax, eax
mov ecx, ebx
push eax
push dword [esp + 0x24]
push dword [esp + 0x64]
push 0x11
pop edx
call fcn.0046e343
add esp, 0xc
cmp dword [esp + 0x2c], 0
jne 0x497a63
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x497a3c
push eax
push dword [esp + 0x6c]
mov ecx, ebx
push dword [ebp + 0x14]
push 0x35
pop eax
mov edx, eax
call fcn.0046e343
add esp, 0xc
mov edx, 0x90
mov ecx, ebx
call fcn.0046e90c
push dword [ebp + 0x14]
mov ecx, ebx
push dword [esp + 0x6c]
push dword [ebp + 0xc]
push 0x1f
pop edx
call fcn.0046e343
add esp, 0xc
mov ecx, edi
push esi
push 2
pop eax
mov edx, eax
call fcn.0048f710
pop ecx
jmp 0x497a6e
mov edx, dword [esp + 0x68]
mov ecx, ebx
call fcn.0046e3f7
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0046e744
test byte [esi + 0x1c], 0x80
jne 0x497ab4
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
movsx eax, word [esi + 0x24]
mov ecx, ebx
push eax
mov eax, dword [ebp + 0x14]
inc eax
push eax
push 0x61
pop edx
call fcn.0046e343
add esp, 0xc
cmp byte [esp + 0x1b], 0
jne 0x497ab4
xor eax, eax
mov edx, esi
push eax
mov ecx, ebx
call fcn.00495563
pop ecx
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x8c]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret