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

Disassembly:
push 0xffffffffffffffff
push 0x6064ca
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov edx, dword [ebx + 0x1f8]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x4c]
add eax, 0x7c
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x88]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
lea edx, [esp + 0x84]
lea eax, [esp + 0x80]
lea ecx, [esp + 0x48]
mov dword [esp + 0xa0], 0x72
mov dword [esp + 0xa4], 0x73
mov dword [esp + 0xa8], 0x75
mov dword [esp + 0xac], 0x74
mov dword [esp + 0xb0], 0x76
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
lea edi, [ebx + 0x20]
xor esi, esi
mov edx, dword [esp + esi + 0xa0]
push edx
mov eax, edi
call fcn.005aa990
mov ecx, dword [esp + esi + 0x6c]
add esi, 4
cmp esi, 0x14
mov dword [ecx], eax
jb 0x478031
mov eax, dword [ebx + 0x1f8]
push eax
lea edi, [esp + 0x50]
call fcn.0040d3b0
mov dword [esp + 0xc8], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
cmp edi, eax
mov ebp, dword [0x6105e8]
mov esi, eax
jbe 0x47808d
call ebp
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x50]
cmp edi, eax
jbe 0x47808d
call ebp
mov edx, esi
sub edx, edi
sar edx, 2
push edx
push esi
push edi
call fcn.0041eef0
xor edi, edi
add esp, 0xc
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov byte [esp + 0xc8], 1
mov esi, dword [ebx + 0x1f8]
add esi, 0x3c
mov ecx, esi
call fcn.0048c750
test eax, eax
jbe 0x4781a8
mov dword [esp + 0x18], edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4780f2
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4780fc
mov ebx, dword [0x6105e8]
call ebx
jmp 0x478102
mov ebx, dword [0x6105e8]
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
add eax, 4
cmp dword [eax + 4], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jbe 0x47811e
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x47813f
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x478141
call ebx
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
mov ebp, dword [eax + 8]
cmp ebp, dword [eax + 0xc]
lea ebx, [eax + 4]
jbe 0x478159
call dword [0x6105e8]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
jbe 0x47816d
call dword [0x6105e8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push eax
push ecx
push ebp
push ebx
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x60]
push eax
lea eax, [esp + 0x40]
call fcn.0047a270
add dword [esp + 0x18], 0x24
mov ecx, esi
add edi, 1
call fcn.0048c750
cmp edi, eax
jb 0x4780d1
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp esi, eax
mov edi, eax
jbe 0x4781c4
call dword [0x6105e8]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp esi, eax
mov ebx, dword [0x6105e8]
jbe 0x4781d0
call ebx
mov ecx, edi
sub ecx, esi
sar ecx, 2
push ecx
push edi
push esi
call fcn.0041eef0
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 4]
mov edi, dword [eax]
lea edx, [esp + 0x58]
mov ebp, ecx
add esp, 0xc
mov dword [esp + 0x64], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
test ebp, ebp
mov esi, dword [ecx + 4]
je 0x478210
cmp ebp, ecx
je 0x478212
call ebx
cmp edi, esi
je 0x478575
test ebp, ebp
jne 0x478220
call ebx
cmp edi, dword [ebp + 4]
jne 0x478227
call ebx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x478530
cmp byte [eax + 0x20], 0
je 0x478530
cmp edi, dword [ebp + 4]
jne 0x478243
call ebx
mov eax, dword [edi + 0x10]
test eax, eax
je 0x478530
movzx ecx, word [eax + 0x22]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp bl, 1
jb 0x478530
cmp bl, 5
ja 0x478530
cmp edi, dword [ebp + 4]
jne 0x478280
call dword [0x6105e8]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x478295
movzx eax, word [eax + 0x22]
cdq
mov ecx, 0x64
idiv ecx
jmp 0x478297
xor edx, edx
cmp bl, 5
jne 0x4782a5
cmp dl, 4
je 0x478530
movzx edx, bl
mov eax, dword [esp + edx*4 + 0x68]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x34], eax
je 0x478530
push 0x548
call fcn.005e694e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
xor ebx, ebx
cmp esi, ebx
mov byte [esp + 0xc8], 2
je 0x478307
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x6111d4
call dword [0x610498]
cmp edi, dword [ebp + 4]
jne 0x4782fa
call dword [0x6105e8]
mov ecx, dword [edi + 0x10]
push ecx
mov ecx, esi
call fcn.00465e00
jmp 0x478309
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0xc8], 1
je 0x478550
cmp edi, dword [ebp + 4]
jne 0x478328
call dword [0x6105e8]
mov edx, dword [edi + 0x10]
mov ebx, dword [edx]
push ebx
lea edi, [esp + 0xa4]
mov dword [esp + 0x24], ebx
call fcn.00405ca0
add esp, 4
mov eax, edi
push eax
mov byte [esp + 0xcc], 3
call fcn.004d7a10
add esp, 4
test al, al
je 0x4783a6
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x420]
and ecx, 0xfffffffa
or ecx, 2
mov edx, edi
mov dword [esi + 0x420], ecx
push edx
lea ecx, [esi + 0x424]
call dword [0x61059c]
mov eax, dword [esi + 0x3ac]
test eax, eax
mov byte [esi + 0x3a8], 1
je 0x478395
mov byte [eax + 0xb8], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x114]
mov ecx, esi
call edx
jmp 0x47850e
mov ebp, dword [esp + 0x5c]
mov esi, dword [0x6105e8]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + eax*4 + 0x64]
mov eax, edi
call fcn.0040d490
test al, al
jne 0x47849f
nop
mov eax, dword [edi + 4]
test eax, eax
je 0x4783e1
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
jne 0x4783e3
call esi
mov eax, dword [edi + 4]
cmp dword [eax], ebx
ja 0x47849f
test eax, eax
je 0x4783fc
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
jne 0x4783fe
call esi
mov eax, dword [edi + 4]
cmp dword [eax], ebx
jne 0x478458
mov edx, dword [ebp + 4]
test edx, edx
jne 0x478410
xor ecx, ecx
jmp 0x478418
mov ecx, dword [ebp + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x478435
mov eax, dword [ebp + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x478435
mov eax, dword [ebp + 8]
mov dword [eax], ebx
add eax, 4
mov dword [ebp + 8], eax
jmp 0x478458
mov esi, dword [ebp + 8]
cmp edx, esi
jbe 0x478442
call dword [0x6105e8]
push esi
push ebp
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xa4]
push edx
mov eax, ebp
call fcn.004484e0
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x478466
call dword [0x6105e8]
mov eax, dword [edi + 8]
lea ecx, [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x478486
add eax, eax
add eax, eax
push eax
push ecx
push eax
push esi
call dword [0x6105f0]
add esp, 0x10
add dword [edi + 8], 0xfffffffc
mov eax, edi
call fcn.0040d490
test al, al
mov esi, dword [0x6105e8]
je 0x4783d0
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, 2
mov dword [esp + 0x1c], eax
jb 0x4783b8
mov edi, dword [esp + 0x44]
mov edx, dword [edi + 4]
test edx, edx
jne 0x4784c2
xor ecx, ecx
jmp 0x4784ca
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x4784e7
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4784e7
mov eax, dword [edi + 8]
mov dword [eax], ebx
add eax, 4
mov dword [edi + 8], eax
jmp 0x47850a
mov esi, dword [edi + 8]
cmp edx, esi
jbe 0x4784f4
call dword [0x6105e8]
push esi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov eax, edi
call fcn.004484e0
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push 1
push esi
push edx
call fcn.0046d6c0
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc8], 1
call dword [0x6105a0]
lea esi, [esp + 0x3c]
call fcn.004492e0
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [0x6105e8]
jmp 0x478205
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x478561
push eax
call fcn.005e6954
add esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp eax, ebx
jmp 0x47859a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x478586
push eax
call fcn.005e6954
add esp, 4
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
cmp eax, ecx
je 0x4785a5
push eax
call fcn.005e6954
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.005e693f
add esp, 0xb8
ret 8