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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov eax, edx
push ebx
sub eax, edi
sub esp, 0xfc
cmp eax, 0x4c0
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xcc], edx
jle 0x476784
test ecx, ecx
je 0x477a91
lea eax, [edi + 0x4c]
mov ebx, edx
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0xd8], eax
lea eax, [edi + 0x50]
mov dword [ebp - 0xe0], eax
lea eax, [edi + 4]
mov dword [ebp - 0xdc], eax
sub ebx, edi
mov ecx, dword [ebp - 0xd4]
sub dword [ebp - 0xd0], 1
sar ebx, 2
imul eax, ebx, 0x286bca1b
mov ebx, eax
shr ebx, 0x1f
add ebx, eax
mov eax, dword [ebp - 0xcc]
sar ebx, 1
imul ebx, ebx, 0x4c
lea esi, [eax - 0x4c]
add ebx, edi
mov dword [esp], ebx
call fcn.004697c0
sub esp, 4
test al, al
mov dword [esp], esi
je 0x476720
mov ecx, ebx
call fcn.004697c0
sub esp, 4
test al, al
jne 0x47678c
mov ecx, dword [ebp - 0xd4]
mov dword [esp], esi
call fcn.004697c0
sub esp, 4
test al, al
mov dword [esp], edi
je 0x477424
mov ebx, dword [ebp - 0xd8]
mov ecx, ebx
call fcn.0057e310
sub esp, 4
mov ecx, edi
mov dword [esp], esi
call fcn.0057e6b0
sub esp, 4
mov ecx, esi
mov dword [esp], ebx
call fcn.0057e6b0
sub esp, 4
mov ecx, ebx
call fcn.0057e670
jmp 0x476937
mov ecx, dword [ebp - 0xd4]
call fcn.004697c0
sub esp, 4
test al, al
jne 0x4772af
mov dword [esp], esi
mov ecx, ebx
call fcn.004697c0
sub esp, 4
test al, al
mov dword [esp], edi
jne 0x477456
mov esi, dword [ebp - 0xd8]
mov ecx, esi
call fcn.0057e310
sub esp, 4
mov ecx, edi
mov dword [esp], ebx
call fcn.0057e6b0
sub esp, 4
mov ecx, ebx
mov dword [esp], esi
call fcn.0057e6b0
sub esp, 4
mov ecx, esi
call fcn.0057e670
jmp 0x476937
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp - 0xd8]
mov dword [esp], edi
call fcn.0057e310
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0xdc]
sub esp, 4
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 0xc]
mov dword [esp], eax
call fcn.006282b0
lea eax, [edi + 8]
mov dword [edi + 0xc], 0
sub esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x47680d
mov ecx, dword [ebx + 8]
mov dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov ecx, dword [ebx + 0x10]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov dword [edi + 0x14], ecx
mov dword [edx + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
lea eax, [ebx + 8]
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
lea ecx, [edi + 0x1c]
lea esi, [ebx + 0x1c]
cmp ecx, esi
je 0x476822
mov dword [esp], esi
call fcn.00458280
sub esp, 4
lea eax, [ebx + 0x2c]
lea ecx, [edi + 0x2c]
cmp ecx, eax
mov dword [ebp - 0xc0], eax
je 0x476843
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call fcn.00458280
sub esp, 4
lea eax, [ebx + 0x3c]
lea ecx, [edi + 0x3c]
cmp ecx, eax
mov dword [ebp - 0xbc], eax
je 0x476864
mov eax, dword [ebp - 0xbc]
mov dword [esp], eax
call fcn.00458280
sub esp, 4
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 4]
mov dword [esp], eax
call fcn.006282b0
mov edx, dword [ebp - 0x58]
lea eax, [ebx + 8]
sub esp, 4
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
test edx, edx
je 0x4768c8
mov ecx, dword [ebp - 0x5c]
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x54]
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebx + 0x14], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea ebx, [ebp - 0x48]
mov ecx, esi
mov dword [esp], ebx
call fcn.00458280
lea esi, [ebp - 0x38]
mov ecx, dword [ebp - 0xc0]
sub esp, 4
mov dword [esp], esi
call fcn.00458280
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xbc]
sub esp, 4
mov dword [esp], eax
mov dword [ebp - 0xc4], eax
call fcn.00458280
mov ecx, dword [ebp - 0xc4]
sub esp, 4
call fcn.0057ff20
mov ecx, esi
call fcn.0057ff20
mov dword [ebp - 0x64], 0x6e3d8c
mov ecx, ebx
call fcn.0057ff20
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
mov dword [esp], eax
call fcn.006282b0
sub esp, 4
mov ebx, dword [ebp - 0xd4]
mov esi, dword [ebp - 0xcc]
mov dword [esp], edi
mov ecx, ebx
mov dword [ebp - 0xc0], ebx
call fcn.004697c0
sub esp, 4
test al, al
jne 0x476da4
lea eax, [esi - 0x4c]
mov dword [ebp - 0xbc], eax
mov esi, esi
lea edi, [edi]
mov eax, dword [ebp - 0xbc]
mov ecx, edi
mov dword [esp], eax
mov esi, eax
call fcn.004697c0
sub dword [ebp - 0xbc], 0x4c
sub esp, 4
test al, al
jne 0x476970
cmp ebx, esi
jae 0x476de0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x64], 0x6e3d8c
test eax, eax
je 0x476db0
mov edx, dword [ebx + 8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edx
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x54], edx
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x50], edx
lea edx, [ebp - 0x5c]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xc8], edx
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x18], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebx + 8]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x28]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x44]
cmp dword [ebx + 0x20], eax
cmovbe eax, dword [ebx + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0x38]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x34]
cmp dword [ebx + 0x30], eax
cmovbe eax, dword [ebx + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0x48]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x24]
cmp dword [ebx + 0x40], eax
cmovbe eax, dword [ebx + 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea eax, [esi + 4]
lea ecx, [ebx + 4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call fcn.006282b0
lea eax, [ebx + 8]
mov dword [ebx + 0xc], 0
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov edx, dword [esi + 0xc]
test edx, edx
je 0x476b39
mov ecx, dword [esi + 8]
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebx + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebx + 0x14], ecx
mov dword [edx + 4], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea eax, [esi + 0x1c]
lea ecx, [ebx + 0x1c]
cmp eax, ecx
mov dword [ebp - 0xc4], eax
je 0x476b77
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.0057fe10
mov eax, dword [ebx + 0x20]
sub esp, 4
cmp dword [esi + 0x20], eax
cmovbe eax, dword [esi + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea eax, [esi + 0x2c]
lea ecx, [ebx + 0x2c]
cmp ecx, eax
mov dword [ebp - 0xbc], eax
je 0x476bb5
mov eax, dword [esi + 0x30]
mov dword [esp], eax
call fcn.0057fe10
mov eax, dword [ebx + 0x30]
sub esp, 4
cmp dword [esi + 0x30], eax
cmovbe eax, dword [esi + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea eax, [esi + 0x3c]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
mov dword [ebp - 0xc0], eax
je 0x476bf3
mov eax, dword [esi + 0x40]
mov dword [esp], eax
call fcn.0057fe10
mov eax, dword [ebx + 0x40]
sub esp, 4
cmp dword [esi + 0x40], eax
cmovbe eax, dword [esi + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [esi + 0xc]
lea ecx, [esi + 4]
mov dword [esp], eax
call fcn.006282b0
mov edx, dword [ebp - 0x58]
lea eax, [esi + 8]
sub esp, 4
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
test edx, edx
je 0x476c5a
mov ecx, dword [ebp - 0x5c]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x54]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x50]
mov dword [esi + 0x14], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc4]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [esi + 0x20]
cmp dword [ebp - 0x44], eax
cmovbe eax, dword [ebp - 0x44]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xbc]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [esi + 0x30]
cmp dword [ebp - 0x34], eax
cmovbe eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc0]
mov dword [esp], eax
call fcn.0057fe10
mov eax, dword [esi + 0x40]
sub esp, 4
cmp dword [ebp - 0x24], eax
cmovbe eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x476d28
mov eax, dword [ebp - 0x20]
mov edx, eax
mov eax, dword [ebp - 0x28]
test eax, eax
mov dword [ebp - 0xbc], eax
je 0x476d28
test edx, edx
je 0x476d28
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0xbc]
mov dword [esp], edx
call dword [eax + 4]
sub esp, 8
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x476d5a
mov eax, dword [ebp - 0x30]
mov edx, eax
mov eax, dword [ebp - 0x38]
test eax, eax
mov dword [ebp - 0xbc], eax
je 0x476d5a
test edx, edx
je 0x476d5a
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0xbc]
mov dword [esp], edx
call dword [eax + 4]
sub esp, 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x64], 0x6e3d8c
test ecx, ecx
je 0x476d93
mov eax, dword [ebp - 0x40]
mov edx, eax
mov eax, dword [ebp - 0x48]
test eax, eax
mov dword [ebp - 0xbc], eax
je 0x476d93
test edx, edx
je 0x476d93
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0xbc]
mov dword [esp], edx
call dword [eax + 4]
sub esp, 8
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
mov dword [esp], eax
call fcn.006282b0
sub esp, 4
add ebx, 0x4c
jmp 0x476943
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
jmp 0x4769e8
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xcc]
mov eax, ebx
call fcn.00476620
mov eax, ebx
sub eax, edi
cmp eax, 0x4c0
jle 0x476784
mov esi, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], ebx
test esi, esi
jne 0x476677
sar eax, 2
imul eax, eax, 0x286bca1b
mov dword [ebp - 0xd4], eax
sub eax, 2
sar eax, 1
mov dword [ebp - 0xcc], eax
imul eax, eax, 0x4c
lea ebx, [edi + eax + 8]
jmp 0x477265
mov edx, dword [ebx]
lea esi, [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], edx
mov edx, dword [ebx + 8]
mov dword [ebp - 0xa0], edx
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x9c], edx
mov dword [eax + 4], esi
mov eax, dword [ebx + 0x10]
mov dword [ebx + 4], 0
mov dword [ebx + 8], ebx
mov dword [ebx + 0xc], ebx
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x20]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x90]
cmp dword [ebx + 0x18], eax
cmovbe eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0x30]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x80]
cmp dword [ebx + 0x28], eax
cmovbe eax, dword [ebx + 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0x40]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0x38]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x70]
cmp dword [ebx + 0x38], eax
cmovbe eax, dword [ebx + 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x64], 0x6e3d8c
test eax, eax
je 0x477482
mov edx, dword [ebp - 0xa8]
lea esi, [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x50], edx
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x48]
mov ecx, eax
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x90], eax
cmovbe eax, dword [ebp - 0x90]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
mov ecx, eax
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x80], eax
cmovbe eax, dword [ebp - 0x80]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
mov ecx, eax
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x70], eax
cmovbe eax, dword [ebp - 0x70]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea eax, [ebp - 0x64]
mov byte [esp + 0x10], 0
mov dword [esp], edi
mov dword [ebp - 0xd8], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xd4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xcc]
mov dword [esp + 4], eax
call fcn.0062ec20
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x477152
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x477152
test esi, esi
je 0x477152
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x477176
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x477176
test esi, esi
je 0x477176
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x64], 0x6e3d8c
test ecx, ecx
je 0x4771a1
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x40]
test eax, eax
je 0x4771a1
test esi, esi
je 0x4771a1
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
mov dword [esp], eax
call fcn.006282b0
mov eax, dword [ebp - 0xcc]
sub esp, 4
test eax, eax
je 0x4774ab
mov ecx, dword [ebp - 0x68]
sub eax, 1
mov dword [ebp - 0xcc], eax
test ecx, ecx
je 0x4771ed
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x6c]
test eax, eax
je 0x4771ed
test esi, esi
je 0x4771ed
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x477214
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x7c]
test eax, eax
je 0x477214
test esi, esi
je 0x477214
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xb0], 0x6e3d8c
test ecx, ecx
je 0x47724b
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x8c]
test eax, eax
je 0x47724b
test esi, esi
je 0x47724b
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xac]
sub ebx, 0x4c
mov dword [esp], eax
call fcn.006282b0
sub esp, 4
mov eax, dword [ebx + 4]
mov dword [ebp - 0xb0], 0x6e3d8c
test eax, eax
jne 0x476e3c
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
jmp 0x476e82
mov ecx, dword [ebp - 0xd8]
mov dword [esp], edi
call fcn.0057e310
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0xdc]
sub esp, 4
mov dword [esp], eax
call fcn.006282b0
mov edx, dword [edi + 0x58]
lea eax, [edi + 8]
sub esp, 4
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
test edx, edx
je 0x477327
mov ecx, dword [edi + 0x54]
mov dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov ecx, dword [edi + 0x5c]
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 0x60]
mov dword [edi + 0x14], ecx
mov dword [edx + 4], eax
mov eax, dword [edi + 0x64]
mov dword [edi + 0x58], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x18], eax
lea eax, [edi + 0x54]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
lea ebx, [edi + 0x68]
lea ecx, [edi + 0x1c]
mov dword [esp], ebx
call fcn.00458280
lea esi, [edi + 0x78]
sub esp, 4
lea ecx, [edi + 0x2c]
mov dword [esp], esi
call fcn.00458280
lea eax, [edi + 0x88]
sub esp, 4
lea ecx, [edi + 0x3c]
mov dword [esp], eax
mov dword [ebp - 0xc0], eax
call fcn.00458280
mov eax, dword [edi + 0x58]
mov ecx, dword [ebp - 0xe0]
sub esp, 4
mov dword [esp], eax
call fcn.006282b0
mov edx, dword [ebp - 0x58]
lea eax, [edi + 0x54]
sub esp, 4
mov dword [edi + 0x58], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
test edx, edx
je 0x4773ca
mov ecx, dword [ebp - 0x5c]
mov dword [edi + 0x58], edx
mov dword [edi + 0x54], ecx
mov ecx, dword [ebp - 0x54]
mov dword [edi + 0x5c], ecx
mov ecx, dword [ebp - 0x50]
mov dword [edi + 0x60], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [edi + 0x64], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
mov ecx, ebx
mov dword [esp], eax
mov dword [ebp - 0xbc], eax
call fcn.00458280
lea ebx, [ebp - 0x38]
sub esp, 4
mov ecx, esi
mov dword [esp], ebx
call fcn.00458280
lea esi, [ebp - 0x28]
mov ecx, dword [ebp - 0xc0]
sub esp, 4
mov dword [esp], esi
call fcn.00458280
sub esp, 4
mov ecx, esi
call fcn.0057ff20
mov ecx, ebx
call fcn.0057ff20
mov dword [ebp - 0x64], 0x6e3d8c
mov ecx, dword [ebp - 0xbc]
jmp 0x476921
mov esi, dword [ebp - 0xd8]
mov ecx, esi
call fcn.0057e310
mov ebx, dword [ebp - 0xd4]
sub esp, 4
mov ecx, edi
mov dword [esp], ebx
call fcn.0057e6b0
sub esp, 4
mov ecx, ebx
mov dword [esp], esi
call fcn.0057e6b0
jmp 0x476775
mov ebx, dword [ebp - 0xd8]
mov ecx, ebx
call fcn.0057e310
sub esp, 4
mov ecx, edi
mov dword [esp], esi
call fcn.0057e6b0
sub esp, 4
mov ecx, esi
mov dword [esp], ebx
call fcn.0057e6b0
jmp 0x47670d
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
jmp 0x476ff2
lea ecx, [ebp - 0xb0]
call fcn.0057e670
mov esi, dword [ebp - 0xc0]
mov eax, esi
lea ebx, [esi - 0x10]
sub esi, 0x20
mov dword [ebp - 0xc0], esi
lea esi, [edi + 8]
sub eax, edi
cmp eax, 0x4c
mov dword [ebp - 0xdc], esi
lea esi, [edi + 0x1c]
mov dword [ebp - 0xd4], esi
jg 0x477a21
jmp 0x476784
mov edx, dword [ebx - 0x34]
lea esi, [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], edx
mov edx, dword [ebx - 0x2c]
mov dword [ebp - 0xa0], edx
mov edx, dword [ebx - 0x28]
mov dword [ebp - 0x9c], edx
mov dword [eax + 4], esi
mov eax, dword [ebx - 0x24]
mov dword [ebx - 0x30], 0
mov dword [ebx - 0x24], 0
mov dword [ebp - 0x98], eax
lea eax, [ebx - 0x34]
mov dword [ebx - 0x2c], eax
mov dword [ebx - 0x28], eax
mov eax, dword [ebx - 0x14]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], eax
mov eax, dword [ebx - 0x1c]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x90]
cmp dword [ebx - 0x1c], eax
cmovbe eax, dword [ebx - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebx - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx - 4]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], eax
mov eax, dword [ebx - 0xc]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x80]
cmp dword [ebx - 0xc], eax
cmovbe eax, dword [ebx - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebx - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x70]
cmp dword [ebx + 4], eax
cmovbe eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebx - 0x30]
lea ecx, [ebx - 0x38]
mov dword [esp], eax
call fcn.006282b0
lea eax, [ebx - 0x34]
mov dword [ebx - 0x30], 0
sub esp, 4
mov dword [ebx - 0x24], 0
mov dword [ebx - 0x2c], eax
mov dword [ebx - 0x28], eax
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4776a2
mov ecx, dword [edi + 8]
mov dword [ebx - 0x30], edx
mov dword [ebx - 0x34], ecx
mov ecx, dword [edi + 0x10]
mov dword [ebx - 0x2c], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebx - 0x28], ecx
mov dword [edx + 4], eax
mov eax, dword [edi + 0x18]
mov dword [ebx - 0x24], eax
mov eax, dword [ebp - 0xdc]
mov dword [edi + 0xc], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea ecx, [ebx - 0x20]
cmp ecx, dword [ebp - 0xd4]
je 0x4776db
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call fcn.0057fe10
mov eax, dword [ebx - 0x1c]
sub esp, 4
cmp dword [edi + 0x20], eax
cmovbe eax, dword [edi + 0x20]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, dword [ebp - 0xc0]
lea eax, [edi + 0x2c]
cmp ecx, eax
je 0x477716
mov eax, dword [edi + 0x30]
mov dword [esp], eax
call fcn.0057fe10
mov eax, dword [ebx - 0xc]
sub esp, 4
cmp dword [edi + 0x30], eax
cmovbe eax, dword [edi + 0x30]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea eax, [edi + 0x3c]
cmp ebx, eax
je 0x47774c
mov eax, dword [edi + 0x40]
mov ecx, ebx
mov dword [esp], eax
call fcn.0057fe10
mov eax, dword [ebx + 4]
sub esp, 4
cmp dword [edi + 0x40], eax
cmovbe eax, dword [edi + 0x40]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x64], 0x6e3d8c
test eax, eax
je 0x477a6b
mov edx, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xc8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x50], edx
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x90], eax
cmovbe eax, dword [ebp - 0x90]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x80], eax
cmovbe eax, dword [ebp - 0x80]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call fcn.0057fe10
sub esp, 4
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x70], eax
cmovbe eax, dword [ebp - 0x70]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea eax, [ebx - 0x3c]
mov esi, dword [ebp - 0xd8]
mov byte [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], edi
sub eax, edi
mov dword [ebp - 0xcc], eax
sar eax, 2
mov dword [esp + 0xc], esi
imul eax, eax, 0x286bca1b
mov dword [esp + 8], eax
call fcn.0062ec20
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x477911
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
test eax, eax
je 0x477911
test esi, esi
je 0x477911
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x477935
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x477935
test esi, esi
je 0x477935
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x64], 0x6e3d8c
test ecx, ecx
je 0x477960
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x40]
test eax, eax
je 0x477960
test esi, esi
je 0x477960
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
mov dword [esp], eax
call fcn.006282b0
mov ecx, dword [ebp - 0x68]
sub esp, 4
test ecx, ecx
je 0x477995
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x6c]
test eax, eax
je 0x477995
test esi, esi
je 0x477995
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4779bc
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp - 0x7c]
test eax, eax
je 0x4779bc
test esi, esi
je 0x4779bc
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xb0], 0x6e3d8c
test ecx, ecx
je 0x4779f3
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x8c]
test eax, eax
je 0x4779f3
test esi, esi
je 0x4779f3
mov edx, dword [ecx]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 4]
sub esp, 8
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xac]
sub ebx, 0x4c
mov dword [esp], eax
call fcn.006282b0
sub dword [ebp - 0xc0], 0x4c
sub esp, 4
cmp dword [ebp - 0xcc], 0x4c
jle 0x476784
mov eax, dword [ebx - 0x30]
mov dword [ebp - 0xb0], 0x6e3d8c
test eax, eax
jne 0x4774f0
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
jmp 0x47753a
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
jmp 0x4777b7
mov dword [ebp - 0xc0], edx
jmp 0x476e16