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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, ecx
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, edx
mov edi, dword [eax]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], ecx
cmp dword [eax + 0x110], ecx
jne 0x477d34
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], ecx
jne 0x477d34
cmp byte [ebx + 0x2b], 1
je 0x477d34
cmp dword [ebp + 0xc], 0xb
jne 0x47799d
cmp word [ebx + 0x20], cx
jl 0x477996
movzx ecx, byte [ebx + 0x2a]
mov dword [ebp + 0xc], ecx
cmp ecx, 0xb
jne 0x47799d
mov dword [ebp + 0xc], 2
mov esi, dword [eax + 0x20]
cmp dword [esi], 1
jne 0x477d34
cmp dword [esi + 0x1c], 0
jne 0x477d34
cmp dword [eax + 0x24], 0
jne 0x477d34
cmp dword [eax + 0x30], 0
jne 0x477d34
cmp dword [eax + 0x28], 0
jne 0x477d34
cmp dword [eax + 0x3c], 0
jne 0x477d34
cmp dword [eax + 0x34], 0
jne 0x477d34
test byte [eax + 4], 1
jne 0x477d34
mov eax, dword [eax + 0x1c]
cmp dword [eax], 1
jne 0x477d34
mov eax, dword [eax + 8]
cmp byte [eax], 0xb4
jne 0x477d34
mov edx, dword [esi + 8]
test edx, edx
je 0x477a2f
mov edi, dword [edi + 0x10]
xor ecx, ecx
cmp dword [edi + 0xc], edx
lea eax, [edi + 0xc]
je 0x477a28
nop dword [eax + eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x477a20
add ecx, ecx
mov eax, dword [edi + ecx*8]
jmp 0x477a32
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x20]
xor edx, edx
push eax
push dword [esi + 0x10]
call fcn.00460440
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x477d34
mov eax, dword [edi + 0x14]
cmp eax, dword [ebx + 0x14]
jne 0x477a66
mov eax, dword [edi + 0x3c]
cmp eax, dword [ebx + 0x3c]
je 0x477d34
mov esi, dword [edi + 0x1c]
mov ecx, esi
mov edx, dword [ebx + 0x1c]
mov eax, edx
shr ecx, 7
shr eax, 7
not ecx
not eax
xor ecx, eax
test cl, 1
jne 0x477d34
cmp byte [edi + 0x2b], 0
jne 0x477d34
movzx ecx, word [ebx + 0x22]
cmp cx, word [edi + 0x22]
jne 0x477d34
mov ax, word [ebx + 0x20]
cmp ax, word [edi + 0x20]
jne 0x477d34
test edx, 0x10000
je 0x477abf
test esi, 0x10000
je 0x477d34
xor eax, eax
mov dword [esp + 0x34], 0
cmp ax, cx
jge 0x477ced
xor ecx, ecx
mov dword [esp + 0x3c], ecx
jmp 0x477ae4
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 4]
mov edi, dword [edi + 4]
add esi, ecx
add edi, ecx
mov cx, word [esi + 0xe]
mov ax, word [edi + 0xe]
and cx, 0x60
and ax, 0x60
cmp cx, ax
jne 0x477d34
test cx, cx
je 0x477b7f
movzx eax, word [esi + 0xc]
test ax, ax
jne 0x477b19
xor ecx, ecx
jmp 0x477b39
cmp byte [ebx + 0x2b], 0
je 0x477b23
xor ecx, ecx
jmp 0x477b39
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x477b39
cmp dword [ecx], eax
jge 0x477b32
xor ecx, ecx
jmp 0x477b39
lea eax, [eax + eax*4]
mov ecx, dword [ecx + eax*4 - 0xc]
movzx eax, word [edi + 0xc]
test ax, ax
jne 0x477b46
xor edx, edx
jmp 0x477b6a
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x2b], 0
je 0x477b54
xor edx, edx
jmp 0x477b6a
mov edx, dword [edx + 0x34]
test edx, edx
je 0x477b6a
cmp dword [edx], eax
jge 0x477b63
xor edx, edx
jmp 0x477b6a
lea eax, [eax + eax*4]
mov edx, dword [edx + eax*4 - 0xc]
push 0xffffffffffffffff
push ecx
xor ecx, ecx
call fcn.00457020
add esp, 8
test eax, eax
jne 0x477d34
mov al, byte [esi + 8]
cmp al, byte [edi + 8]
jne 0x477d34
movzx ecx, word [edi + 0xe]
test ecx, 0x200
jne 0x477b9b
xor ecx, ecx
jmp 0x477bb9
mov eax, dword [edi]
cmp byte [eax], 0
je 0x477ba8
inc eax
cmp byte [eax], 0
jne 0x477ba2
test cl, 4
je 0x477bb6
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x477bb0
lea ecx, [eax + 1]
movzx ebx, word [esi + 0xe]
test ebx, 0x200
jne 0x477bc9
xor eax, eax
jmp 0x477be7
mov eax, dword [esi]
cmp byte [eax], 0
je 0x477bd6
inc eax
cmp byte [eax], 0
jne 0x477bd0
test bl, 4
je 0x477be6
nop dword [eax + eax]
inc eax
cmp byte [eax], 0
jne 0x477be0
inc eax
push ecx
push eax
call fcn.004179a0
add esp, 8
test eax, eax
jne 0x477d34
test byte [esi + 4], 0xf
je 0x477c09
test byte [edi + 4], 0xf
je 0x477d34
test bl, 0x60
jne 0x477cc9
cmp dword [esp + 0x34], 0
jle 0x477cc9
movzx eax, word [esi + 0xc]
test ax, ax
jne 0x477c2a
xor edx, edx
jmp 0x477c4e
mov ecx, dword [esp + 0x24]
cmp byte [ecx + 0x2b], 0
je 0x477c38
xor edx, edx
jmp 0x477c4e
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x477c4e
cmp dword [edx], eax
jge 0x477c47
xor edx, edx
jmp 0x477c4e
lea eax, [eax + eax*4]
mov edx, dword [edx + eax*4 - 0xc]
movzx eax, word [edi + 0xc]
test ax, ax
jne 0x477c5b
xor esi, esi
jmp 0x477c7f
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x2b], 0
je 0x477c69
xor esi, esi
jmp 0x477c7f
mov esi, dword [ecx + 0x34]
test esi, esi
je 0x477c7f
cmp dword [esi], eax
jge 0x477c78
xor esi, esi
jmp 0x477c7f
lea eax, [eax + eax*4]
mov esi, dword [esi + eax*4 - 0xc]
xor ecx, ecx
test esi, esi
sete cl
xor eax, eax
test edx, edx
sete al
cmp eax, ecx
jne 0x477d34
test edx, edx
je 0x477cc9
mov ecx, dword [esi + 8]
mov eax, dword [edx + 8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x477cc0
test dl, dl
je 0x477cbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x477cc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x477ca0
xor eax, eax
jmp 0x477cc5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x477d34
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
inc esi
add ecx, 0x10
mov dword [esp + 0x34], esi
movsx eax, word [ebx + 0x22]
mov dword [esp + 0x3c], ecx
cmp esi, eax
jl 0x477ae0
mov edi, dword [ebx + 8]
mov ecx, 1
test edi, edi
je 0x477d74
nop dword [eax]
cmp byte [edi + 0x36], 0
mov eax, dword [esp + 0x38]
cmovne eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
test esi, esi
je 0x477d34
nop word [eax + eax]
mov edx, esi
mov ecx, edi
call fcn.00477850
test eax, eax
jne 0x477d3d
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x477d20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2c]
cmp eax, dword [edi + 0x2c]
jne 0x477d68
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x3c]
cmp eax, dword [ebx + 0x3c]
jne 0x477d68
mov eax, dword [0x513200]
test eax, eax
je 0x477d34
push 0x19b
call eax
add esp, 4
test eax, eax
je 0x477d34
mov edi, dword [edi + 0x14]
mov ecx, 1
test edi, edi
jne 0x477d00
mov edx, dword [ebx + 0x10]
mov esi, dword [esp + 0x18]
test edx, edx
je 0x477d90
mov ecx, dword [esi + 0x10]
push 0xffffffffffffffff
call fcn.004573b0
add esp, 4
test eax, eax
jne 0x477d34
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, 0x4000
or eax, 0
je 0x477daa
cmp dword [ebx + 0x30], 0
jne 0x477d34
and ecx, 1
xor eax, eax
or eax, ecx
jne 0x477d34
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x2c], 0xffff8000
test ecx, ecx
je 0x477dde
mov eax, dword [edi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [esp + 0x2c], edx
cmp dword [eax], ecx
je 0x477dde
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x477dd2
mov dword [esp + 0x2c], edx
mov edi, dword [esp + 0x20]
mov esi, dword [edi + 8]
mov dword [esp + 0x48], esi
test esi, esi
jne 0x477e0b
cmp dword [edi + 0x78], esi
jne 0x477dfe
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x477dfe
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.00436f50
mov esi, eax
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x78]
mov edx, edi
mov ecx, dword [esp + 0x2c]
test eax, eax
cmovne edx, eax
mov eax, 1
shl eax, cl
mov edi, dword [edx + 0x58]
test edi, eax
jne 0x477e39
bts edi, ecx
mov dword [edx + 0x58], edi
cmp ecx, 1
jne 0x477e39
mov ecx, edx
call fcn.004685d0
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x10]
push ebx
mov edi, dword [ecx + 0x28]
mov dword [esp + 0x18], edi
lea eax, [edi + 1]
mov dword [esp + 0x14], eax
inc eax
mov dword [ecx + 0x28], eax
call fcn.00473000
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x50], eax
mov al, byte [ecx + 0x13]
test al, al
jne 0x477e72
inc dword [ecx + 0x2c]
mov edx, dword [ecx + 0x2c]
jmp 0x477e81
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov edx, dword [ecx + eax*4 + 0xa0]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x28], edx
cmp dword [esi + 0x70], ecx
jg 0x477ea3
push 0
push edx
push 0
mov edx, 0x4b
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x477ed2
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x20]
mov al, byte [ecx + 0x13]
test al, al
jne 0x477ee5
inc dword [ecx + 0x2c]
mov eax, dword [ecx + 0x2c]
jmp 0x477ef4
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0xa0]
push 0x71
push ebx
push dword [ebp + 0x10]
lea edx, [edi + 1]
mov dword [esp + 0x28], eax
call fcn.004728d0
mov eax, dword [esp + 0x3c]
add esp, 0xc
test byte [eax + 0x18], 4
jne 0x478012
cmp word [ebx + 0x20], 0
jge 0x477f24
cmp dword [ebx + 8], 0
jne 0x477f40
cmp dword [esp + 0x38], 0
jne 0x477f40
mov eax, dword [ebp + 0xc]
cmp eax, 2
je 0x478012
cmp eax, 1
je 0x478012
mov edi, dword [esi + 0x6c]
cmp dword [esi + 0x70], edi
jg 0x477f63
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x24
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov edi, eax
jmp 0x477f96
mov edx, dword [esp + 0x10]
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x44], ecx
cmp dword [esi + 0x70], ecx
jg 0x477fbd
push 0
push 0
push 0
mov edx, 9
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov dword [esp + 0x44], eax
jmp 0x477ff0
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 9
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x478002
mov eax, 0x5160d8
jmp 0x47800b
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov edi, dword [esp + 0x14]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x18]
test byte [eax + 0x1c], 0x80
jne 0x478531
mov ecx, dword [esp + 0x20]
mov edx, edi
push 0x70
push eax
push dword [esp + 0x34]
call fcn.004728d0
mov edx, dword [esi + 0x6c]
add esp, 0xc
mov dword [esp + 0x40], edx
cmp dword [esi + 0x70], edx
jg 0x47805b
push 0
push 0
push edi
mov edx, 0x24
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x47808a
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp word [ebx + 0x20], 0
jl 0x47819b
mov edi, dword [esi + 0x6c]
mov edx, dword [esp + 0x1c]
cmp dword [esi + 0x70], edi
jg 0x4780bf
push 0
push edx
push dword [esp + 0x1c]
mov edx, 0x87
mov ecx, esi
call fcn.00437140
mov edx, dword [esp + 0x28]
add esp, 0xc
mov edi, eax
jmp 0x4780ee
mov ebx, dword [esp + 0x14]
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
test byte [eax + 0x18], 4
jne 0x478182
mov ebx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ebx
jg 0x47811e
push edx
push 0
push dword [esp + 0x18]
mov edx, 0x1f
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov ebx, eax
jmp 0x478151
mov edx, dword [esp + 0x10]
lea eax, [ebx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x24]
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x24]
call fcn.004689e0
mov eax, dword [esi]
add esp, 4
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x478176
mov eax, 0x5160d8
jmp 0x47817f
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
push dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
call fcn.00473120
add esp, 4
jmp 0x478245
cmp dword [ebx + 8], 0
jne 0x4781ed
mov eax, dword [esp + 0x30]
test byte [eax + 0x18], 8
jne 0x4781ed
mov edi, dword [esi + 0x6c]
cmp dword [esi + 0x70], edi
jg 0x4781d0
push 0
push dword [esp + 0x20]
mov edx, 0x7f
mov ecx, esi
push dword [esp + 0x18]
call fcn.00437140
add esp, 0xc
mov edi, eax
jmp 0x478245
mov edx, dword [esp + 0x10]
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], edx
jmp 0x47822d
mov edi, dword [esi + 0x6c]
cmp dword [esi + 0x70], edi
jg 0x478212
push 0
push dword [esp + 0x20]
mov edx, 0x87
mov ecx, esi
push dword [esp + 0x1c]
call fcn.00437140
add esp, 0xc
mov edi, eax
jmp 0x478245
mov ebx, dword [esp + 0x14]
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], ebx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov eax, dword [esp + 0x30]
test byte [eax + 0x18], 4
je 0x4782af
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x478275
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x89
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov ebx, 0x98
jmp 0x4782b4
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov ebx, 0x98
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4782b4
mov ebx, 0xa9
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4782dd
push dword [esp + 0x1c]
mov edx, 0x81
mov ecx, esi
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00437140
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x478310
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x478332
push edx
push dword [esp + 0x2c]
mov edx, 0x80
mov ecx, esi
push dword [esp + 0x18]
call fcn.00437140
add esp, 0xc
jmp 0x478365
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x80
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
test byte [eax + 0x18], 4
jne 0x4783ba
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x47838a
push dword [esp + 0x24]
mov edx, 0xfffffffb
call fcn.00437b50
add esp, 4
jmp 0x4783ba
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
cmp byte [eax + ecx*4 - 0x13], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x24]
je 0x4783b3
push 0xfffffffffffffffb
push ecx
lea edx, [eax - 0x14]
mov ecx, esi
call fcn.00437d00
add esp, 8
jmp 0x4783ba
mov dword [eax - 4], ecx
mov byte [eax - 0x13], 0xfb
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jle 0x4783cf
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
mov word [eax + ecx*4 - 0x12], bx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4783ed
push 0
push edi
mov edi, dword [esp + 0x1c]
mov edx, 0x27
push edi
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x47841e
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edi
mov edi, edx
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x47843c
push 0
push 0
push edi
mov edx, 0x7a
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x47846b
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4784f9
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x7a
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], eax
test eax, eax
je 0x478a67
mov edi, dword [edi + 8]
mov byte [esp + 0x3c], 0
test edi, edi
je 0x4784cd
mov esi, dword [esp + 0x24]
mov edx, edi
mov ecx, esi
call fcn.00477850
test eax, eax
jne 0x4784c9
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x4784b5
mov esi, dword [esp + 0x48]
mov ecx, dword [esi + 0x6c]
mov edx, dword [edi + 0x2c]
cmp dword [esi + 0x70], ecx
jg 0x4785a1
push dword [esp + 0x2c]
mov ecx, esi
push edx
push dword [esp + 0x1c]
mov edx, 0x70
call fcn.00437140
add esp, 0xc
jmp 0x4785d0
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x47848e
mov edx, dword [ebp + 0x10]
mov edi, dword [esp + 0x20]
cmp edx, 1
je 0x478561
mov eax, dword [edi]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x478561
push dword [ebx]
mov ecx, edi
push 1
push dword [ebx + 0x14]
call fcn.0045f660
add esp, 0xc
mov edx, dword [esp + 0x2c]
cmp edx, 1
je 0x478492
mov eax, dword [edi]
mov ecx, edx
mov edi, dword [esp + 0x18]
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x478496
push dword [edi]
mov ecx, dword [esp + 0x24]
push 0
push dword [edi + 0x14]
call fcn.0045f660
add esp, 0xc
jmp 0x478496
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
mov edx, edi
mov ecx, eax
mov ebx, dword [eax + 8]
call fcn.00468e70
mov edx, eax
test edx, edx
je 0x478610
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x4785fe
push edx
mov edx, 0xfffffff8
call fcn.00437b50
add esp, 4
jmp 0x478610
mov eax, dword [ebx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x6c]
mov edx, dword [edx + 0x2c]
cmp dword [esi + 0x70], ecx
jg 0x478638
push dword [ebp + 0x10]
mov ecx, esi
push edx
push dword [esp + 0x18]
mov edx, 0x71
call fcn.00437140
add esp, 0xc
jmp 0x478666
mov ebx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + ecx*4], 0x71
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
mov ecx, eax
mov edx, dword [esp + 0x24]
mov ebx, dword [eax + 8]
call fcn.00468e70
mov edx, eax
test edx, edx
je 0x4786a8
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x478696
push edx
mov edx, 0xfffffff8
call fcn.00437b50
add esp, 4
jmp 0x4786a8
mov eax, dword [ebx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x34], edx
test edx, edx
jle 0x4786ca
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov edx, 1
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x34], edx
cmp dword [esi + 0x70], edx
jg 0x4786ec
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x24
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov dword [esp + 0x34], eax
jmp 0x47871f
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
test byte [eax + 0x18], 4
je 0x478853
movzx edx, word [edi + 0x34]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x50], edx
test edx, edx
je 0x47879d
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x4c], ecx
mov ebx, dword [ecx]
test ebx, ebx
je 0x47879d
mov edi, 0x4f9ed8
sub ebx, edi
movzx eax, byte [edi]
movzx edx, byte [edi + ebx]
cmp eax, edx
jne 0x478780
test eax, eax
jne 0x478792
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
inc eax
mov edx, dword [esp + 0x50]
add ecx, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x4c], ecx
cmp eax, edx
jl 0x478746
jmp 0x47879d
movzx ecx, byte [eax + 0x4fa530]
movzx eax, byte [edx + 0x4fa530]
sub ecx, eax
jne 0x478795
inc edi
jmp 0x478753
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
cmp eax, edx
jne 0x478879
mov ecx, dword [esi + 0x6c]
mov bl, 0x90
cmp dword [esi + 0x70], ecx
jg 0x4787cc
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x89
mov ecx, esi
call fcn.00437140
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4787ff
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov edi, dword [esp + 0x14]
cmp dword [esi + 0x70], ecx
jg 0x478823
push 0
push edi
push edx
mov edx, 0x81
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x4788d0
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x81
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4788d3
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
test byte [eax + 0x1c], 0x80
je 0x47887d
mov eax, dword [esp + 0x24]
movzx ebx, bl
mov al, byte [eax + 0x38]
and al, 3
cmp al, 2
mov eax, 1
cmove ebx, eax
jmp 0x47887d
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esi + 0x6c]
mov edi, dword [esp + 0x14]
cmp dword [esi + 0x70], ecx
jg 0x4788a1
push 1
push dword [esp + 0x2c]
mov edx, 0x86
mov ecx, esi
push edi
call fcn.00437140
add esp, 0xc
jmp 0x4788d0
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
lea edx, [edi + 1]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4788f3
push 0
push dword [esp + 0x2c]
mov ecx, esi
push edx
mov edx, 0x8a
call fcn.00437140
add esp, 0xc
jmp 0x478926
mov edi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
test ecx, ecx
jle 0x478941
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
or bl, 8
movzx edx, bl
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x34]
lea edx, [ebx + 1]
cmp dword [esi + 0x70], ecx
jg 0x478962
push 0
push edx
push edi
mov edx, 0x27
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x478991
mov ebx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x27
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x4789a3
mov eax, 0x5160d8
jmp 0x4789ac
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4789cd
push 0
push 0
push edi
mov edx, 0x7a
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x4789fc
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x478a1d
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x7a
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x478a50
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4784a5
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x478a8d
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x478a81
mov eax, 0x5160d8
jmp 0x478a8a
mov eax, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test ecx, ecx
je 0x478aad
mov al, byte [edx + 0x13]
cmp al, 8
jae 0x478aad
movzx eax, al
mov dword [edx + eax*4 + 0xa0], ecx
inc byte [edx + 0x13]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x478ac9
mov al, byte [edx + 0x13]
cmp al, 8
jae 0x478ac9
movzx eax, al
mov dword [edx + eax*4 + 0xa0], ecx
inc byte [edx + 0x13]
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x478bb6
cmp dword [edx + 0x74], 0
je 0x478ae2
mov ecx, edx
call fcn.00473190
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x478b01
push 0
push 0
push 0
mov edx, 0x46
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x478b34
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x46
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x478b46
mov eax, 0x5160d8
jmp 0x478b4f
mov eax, dword [esi + 0x68]
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x478b7a
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x7a
mov ecx, esi
call fcn.00437140
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret