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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xec]
cmp eax, 0xf3c
jge 0x49c841
inc eax
mov dword [esp + 0x24], edi
mov dword [edi + 0xec], eax
cmp eax, 1
je 0x477ea0
cmp byte [edi + 0xfc], 0
mov byte [edi + 0x144], 0
jne 0x477ca6
lea ebx, [ebx]
cmp byte [edi + 0x144], 0
jne 0x477ca6
cmp byte [0x4923c3], 0
jne 0x477baa
cmp byte [0x4a3548], 0
jne 0x49c85f
mov esi, dword [0x47d6a4]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x78]
push eax
call esi
test eax, eax
jne 0x477e40
cmp byte [0x4923c6], 1
je 0x49c887
cmp dword [edi + 0xf8], 1
je 0x49d1cf
cmp dword [0x4a3504], 0
jne 0x49c8a4
cmp byte [0x4923cc], 1
je 0x49c954
cmp dword [edi + 0x460], 0
jne 0x49c96e
cmp byte [0x4a351c], 0
jne 0x49cabf
push edi
call fcn.00477ad0
cmp al, 1
je 0x477c99
cmp byte [0x4a3690], 0
jne 0x49cce8
mov eax, dword [edi + 0xf8]
cmp eax, 7
je 0x49cd66
cmp eax, 8
je 0x49cdd1
cmp eax, 9
je 0x49cdd1
cmp eax, 2
je 0x477def
cmp eax, 3
je 0x477def
cmp eax, 4
je 0x477def
cmp eax, 5
je 0x477def
cmp eax, 6
je 0x477def
mov ecx, dword [ebp + 8]
mov dword [edi + 0xf4], ecx
mov eax, ecx
inc ecx
mov dword [ebp + 8], ecx
cmp eax, dword [0x4a3fd8]
jg 0x49d08a
test eax, eax
jle 0x49d08a
shl eax, 4
add eax, dword [0x4a400c]
je 0x49d08a
mov esi, eax
mov ecx, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [ecx]
movsx eax, word [edx + 8]
cmp eax, ebx
jne 0x477cce
lea eax, [ebp + 8]
push eax
push esi
push edi
call fcn.004798c0
cmp byte [edi + 0xfc], 0
je 0x477b50
mov eax, dword [edi + 0xec]
mov byte [edi + 0x144], 0
cmp eax, 1
je 0x477ecb
dec eax
mov dword [edi + 0xec], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x34
jne 0x477d70
lea eax, [esp + 0x47]
push eax
lea ecx, [esp + 0x4c]
push ecx
push esi
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], ebx
call fcn.00477fc0
test eax, eax
jne 0x477d15
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax*4]
cmp word [eax + 8], 0x7f
jne 0x49d11d
mov esi, dword [esp + 0x54]
cmp esi, ebx
je 0x477d3a
mov eax, dword [esi + 0xc]
dec dword [eax]
mov edx, dword [esi + 0xc]
cmp dword [edx], ebx
je 0x49d138
push esi
call fcn.0047fcac
add esp, 4
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x50]
cmp eax, 8
je 0x49d154
cmp eax, 0xa
je 0x49d175
cmp eax, 5
je 0x49d18c
cmp eax, 0xb
je 0x49d19a
cmp eax, 0xc
jne 0x477c99
jmp 0x49d1b8
dec eax
cmp eax, 0x7e
ja 0x49d108
movzx eax, byte [eax + 0x409334]
jmp dword [eax*4 + 0x409320]
push 0xa
call dword [fcn.0047d15c]
cmp dword [edi + 0x2f0], 0
je 0x477e25
mov esi, dword [edi + 0x2f8]
call fcn.0047afa0
xor ecx, ecx
cmp edx, ecx
jl 0x477e25
mov ebx, ecx
jg 0x477eac
cmp eax, dword [edi + 0x2f0]
jae 0x477eac
mov eax, dword [edi + 0xf8]
cmp eax, 3
jl 0x477c99
jmp 0x49cf54
cmp dword [esp + 0x6c], 0x12
je 0x49c871
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x4a3510
call fcn.0047bf10
test eax, eax
jne 0x477e87
lea edx, [esp + 0x68]
push edx
mov ebx, 0x4a3510
call fcn.0047bee0
test eax, eax
jne 0x477e87
lea eax, [esp + 0x68]
push eax
call dword [0x47d6a0]
lea ecx, [esp + 0x68]
push ecx
call dword [0x47d69c]
push 1
push 0
push 0
push 0
lea edx, [esp + 0x78]
push edx
call esi
test eax, eax
je 0x477b90
jmp 0x477e40
mov esi, edi
call fcn.0047f160
jmp 0x477b36
cmp dword [edi + 0xf8], 2
jne 0x49cf3b
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], ebx
jmp 0x477c99
mov esi, edi
call fcn.0046fc40
cmp byte [edi + 0xfc], 1
je 0x477cc3
mov ebx, edi
call fcn.00470560
push 0
call dword [0x47d698]
mov edx, dword [0x4923f8]
push edx
call dword [0x47d5e4]
mov esi, dword [0x47d694]
push 0
push 0
push 0
lea eax, [esp + 0x148]
push eax
call esi
test eax, eax
jle 0x477cc3
jmp 0x49d1ec
push 0xffffffffffffffff
push 0x9a
push edi
mov byte [0x4923c2], 0
call 0x4c8bd8
mov eax, 1
jmp 0x477cc5
cmp dword [edi + 0xf8], 0
je 0x477baa
jmp 0x477b73
mov byte [edi + 0xfc], 1
mov dword [edi + 0xf8], 1
jmp 0x477b90
mov byte [0x4923cc], 0
mov byte [0x4923c6], 0
mov dword [edi + 0xf8], 1
jmp 0x477b9d
mov eax, dword [0x4a3508]
mov ebx, dword [eax]
call fcn.004a05d5
mov eax, dword [edi + 0x1b0]
xor esi, esi
test eax, eax
je 0x49c8e7
mov ecx, dword [edi + 0x1ac]
mov edx, dword [ecx]
cmp dword [edx], 0
je 0x49c8db
mov edx, dword [edx]
cmp dword [edx], ebx
je 0x49c8e7
inc esi
add ecx, 4
cmp esi, dword [edi + 0x1b0]
jb 0x49c8c6
cmp esi, eax
je 0x477bb7
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xfc]
push ecx
mov ecx, dword [edi + 0x1ac]
lea edx, [esp + 0xf4]
push edx
mov edx, dword [ecx + esi*4]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push ecx
push edi
call 0x4cf1ca
mov edx, dword [edi + 0x1ac]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x60]
add ecx, 0x18
inc ebx
push ecx
lea esi, [edi + 0x14c]
mov dword [esp + 0x64], ebx
call fcn.0047cb30
push 0
push 1
push ebx
push edi
call 0x4e6d75
jmp 0x477c99
cmp byte [0x4923c3], 0
jne 0x477bc4
push 0xa
call dword [fcn.0047d15c]
jmp 0x477c99
cmp byte [0x4a442c], 0
jne 0x477bd1
mov ebx, dword [edi + 0x458]
mov byte [0x4a442c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ebx
push ecx
lea edx, [esp + 0x18]
mov dword [esp], 0
push edx
call fcn.004ae172
test al, al
je 0x49ca50
mov eax, dword [ebx]
cmp byte [eax + 0x11], 0
jne 0x49ca38
mov esi, dword [eax + 0x14]
mov dword [esp + 0x18], eax
call fcn.0047afa0
test edx, edx
jl 0x49ca38
jg 0x49c9e1
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x49ca38
inc dword [esp + 0x28]
mov esi, dword [ebx]
call dword [fcn.0047d760]
mov dword [esi + 0x14], eax
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0xd0]
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0xe4]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x70]
push edx
push ecx
push edi
call 0x4cf1ca
mov eax, dword [esp + 0x64]
mov edx, dword [ebx]
push 0
inc eax
push 1
push eax
push edi
mov dword [esp + 0x74], eax
mov byte [edx + 0x10], 1
call 0x4e6d75
mov eax, dword [ebx]
mov byte [eax + 0x10], 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004ac014
mov ebx, dword [esp + 0x14]
jmp 0x49c994
mov eax, dword [edi + 0x458]
mov dword [esp + 0x14], eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp], 0
push ecx
call fcn.004ae172
test al, al
je 0x49caa8
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
cmp byte [eax + 0x11], 0
jne 0x49ca95
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004ac014
jmp 0x49ca5a
lea eax, [esp + 0x14]
push eax
lea eax, [edi + 0x458]
push eax
call 0x4bc8b0
jmp 0x49ca50
cmp dword [esp + 0x28], 0
mov byte [0x4a442c], 0
jg 0x477c99
jmp 0x477bd1
cmp byte [edi + 0x464], 1
je 0x477bde
cmp byte [0x4a3548], 1
je 0x477bde
lea ecx, [esp + 0x68]
push ecx
call 0x4b2fdc
lea edx, [esp + 0x68]
push edx
push 0x4a3510
call 0x4bc480
test al, al
je 0x49ccda
lea eax, [esp + 0x6c]
push eax
call fcn.004a41d7
test al, al
jne 0x49cae3
lea ecx, [esp + 0xf4]
push ecx
lea edx, [esp + 0xe8]
push edx
mov edx, dword [esp + 0x74]
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x98]
push ecx
push edx
push edi
call 0x4cf1ca
test al, al
je 0x49cae3
xor ebx, ebx
mov edi, 1
lea esi, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
call fcn.00477860
mov eax, dword [esp + 0x68]
mov dword [esp + 0x38], edi
mov edi, 0x482e70
lea esi, [esp + 0xfc]
mov dword [esp + 0x30], eax
call fcn.00470620
lea eax, [ebx + 2]
lea ecx, [ebx + 1]
lea edx, [esp + 0x30]
call fcn.00470490
mov ecx, esi
call fcn.00470bf0
lea esi, [esp + 0x30]
call fcn.00477860
mov ecx, dword [esp + 0x7c]
mov edi, 0x482e88
lea esi, [esp + 0x11c]
mov dword [esp + 0x38], 7
mov dword [esp + 0x30], ecx
call fcn.00470620
lea eax, [ebx + 2]
lea ecx, [ebx + 1]
lea edx, [esp + 0x30]
call fcn.00470490
mov ecx, esi
call fcn.00470bf0
lea esi, [esp + 0x30]
call fcn.00477860
mov edx, dword [esp + 0x80]
mov edi, 0x482ea8
lea esi, [esp + 0x12c]
mov dword [esp + 0x38], 7
mov dword [esp + 0x30], edx
call fcn.00470620
lea eax, [ebx + 2]
lea ecx, [ebx + 1]
lea edx, [esp + 0x30]
call fcn.00470490
mov ecx, esi
call fcn.00470bf0
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x24]
push ebx
push 1
inc eax
push eax
push esi
mov byte [esi + 0x464], 1
call 0x4e6d75
mov byte [esi + 0x464], bl
lea esi, [esp + 0x30]
jmp 0x49ccc3
xor ebx, ebx
mov edi, 1
lea esi, [esp + 0x90]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ebx
call fcn.00477860
mov eax, dword [esp + 0x68]
mov dword [esp + 0x98], edi
mov edi, 0x482ec8
lea esi, [esp + 0x10c]
mov dword [esp + 0x90], eax
call fcn.00470620
lea eax, [ebx + 2]
lea ecx, [ebx + 1]
lea edx, [esp + 0x90]
call fcn.00470490
mov ecx, esi
call fcn.00470bf0
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0x24]
push ebx
push 1
inc ecx
push ecx
push esi
mov byte [esi + 0x465], 1
call 0x4e6d75
mov byte [esi + 0x465], bl
lea esi, [esp + 0x90]
call fcn.00477860
lea ecx, [esp + 0x6c]
call fcn.00470bf0
mov edi, dword [esp + 0x24]
jmp 0x477c99
lea ecx, [esp + 0x6c]
call fcn.00470bf0
jmp 0x477bde
cmp byte [edi + 0x465], 1
je 0x477bf9
lea ecx, [esp + 0x68]
push ecx
call 0x4b2fdc
lea edx, [esp + 0x68]
push edx
push 0x4a35f0
call 0x4be2c3
test al, al
je 0x49cd58
lea eax, [esp + 0x6c]
push eax
call fcn.004a41d7
test al, al
jne 0x49ccff
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0xe4]
push edx
mov edx, dword [esp + 0x74]
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0xc0]
push ecx
push edx
push edi
call 0x4cf1ca
test al, al
je 0x49ccff
jmp 0x49cc35
lea ecx, [esp + 0x6c]
call fcn.00470bf0
jmp 0x477bf9
mov edx, dword [edi + 0x450]
push 0xa
push edx
call dword [fcn.0047d2f4]
mov dword [esp + 0x5c], eax
cmp eax, 0x102
je 0x477c99
mov ecx, dword [edi + 0x450]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [0x47d248]
mov edx, dword [edi + 0x450]
push edx
call dword [fcn.0047d304]
mov eax, dword [esp + 0x5c]
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x18], eax
add ecx, edi
lea eax, [esp + 0x18]
call fcn.0047bdd0
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], 0
jmp 0x477c99
push 0xa
call dword [fcn.0047d15c]
cmp dword [edi + 0x448], 0
je 0x49ce43
mov esi, dword [edi + 0x44c]
call fcn.0047afa0
xor ecx, ecx
xor ebx, ebx
cmp edx, ecx
jl 0x49ce45
jg 0x49ce0f
cmp eax, dword [edi + 0x448]
jb 0x49ce45
mov eax, dword [edi + 0x454]
cmp eax, ebx
je 0x49ce2a
push eax
call dword [fcn.0047d304]
mov dword [edi + 0x454], ebx
mov edx, dword [edi]
mov ecx, dword [edx + 4]
add ecx, edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.0047bdd0
jmp 0x477eb9
xor ebx, ebx
mov edx, dword [edi + 0x438]
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call 0x4af4e9
add esp, 0xc
cmp dword [edi + 0xf8], 9
jne 0x49ce8a
cmp byte [esp + 0x13], 0
jne 0x49ce80
mov byte [esp + 0x13], 1
jmp 0x49ce97
mov byte [esp + 0x13], 0
jmp 0x477c99
cmp byte [esp + 0x13], 1
jne 0x477c99
xor ebx, ebx
mov eax, dword [edi + 0x454]
mov dword [esp + 0x58], 0xcccccccc
cmp eax, ebx
je 0x49cecc
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [0x47d248]
mov edx, dword [edi + 0x454]
push edx
call dword [fcn.0047d304]
mov dword [edi + 0x454], ebx
cmp dword [edi + 0xf8], 8
jne 0x49cf0a
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x2c]
test eax, eax
jns 0x49ceef
fadd qword [0x487bb8]
mov edx, dword [edi]
fstp qword [esp + 0x18]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x18]
push ecx
add eax, edi
push eax
call 0x4c1b2b
jmp 0x49cf1c
mov edx, dword [edi]
mov ecx, dword [esp + 0x58]
mov eax, dword [edx + 4]
push ebx
push ecx
add eax, edi
call fcn.00472670
mov eax, dword [edi + 0x2f4]
push eax
mov byte [edi + 0x144], 1
mov dword [edi + 0xf8], ebx
call dword [fcn.0047d15c]
jmp 0x477c99
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.0047bdd0
jmp 0x477eb9
sub eax, 3
cmp eax, 3
ja 0x477c99
jmp dword [eax*4 + 0x42e621]
mov dword [edi + 0xf8], 1
jmp 0x477c99
movsx edx, word [edx + 0xa]
push edx
push 0x1388
push edi
call 0x4c8bd8
jmp 0x477c99
movsx ecx, word [eax + 0xa]
push ecx
push 0x72
push edi
call 0x4c8bd8
lea esi, [esp + 0x48]
call fcn.00477860
jmp 0x477c99
mov eax, dword [esi]
push eax
call fcn.0047fcac
mov ecx, dword [esi + 0xc]
add esp, 4
push ecx
call fcn.0047fcac
add esp, 4
jmp 0x477d2d
mov esi, dword [esp + 0x48]
cmp esi, ebx
je 0x477c99
push esi
call dword [0x47d404]
push esi
call fcn.0047fcac
add esp, 4
jmp 0x477c99
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x477c99
push eax
call 0x4af9de
jmp 0x477c99
lea eax, [esp + 0x48]
call fcn.0047d400
jmp 0x477c99
mov esi, dword [esp + 0x48]
mov edx, dword [esi + 4]
push edx
call fcn.0047fcac
add esp, 4
push esi
call fcn.0047fcac
add esp, 4
jmp 0x477c99
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x477c99
push eax
call 0x4b64a4
jmp 0x477c99
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
add ecx, edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
call fcn.0047bdd0
jmp 0x477ca6
lea ecx, [esp + 0x13c]
push ecx
call dword [0x47d6a0]
lea edx, [esp + 0x13c]
push edx
call dword [0x47d69c]
push 0
push 0
push 0
lea eax, [esp + 0x148]
push eax
call esi
test eax, eax
jg 0x49d1ec
jmp 0x477cc3