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

Disassembly:
mov ecx, dword [0x9aee30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x478167
sub esp, 0x74
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
cmp ecx, eax
jbe 0x478161
mov edx, dword [esp + 0x7c]
lea ebx, [edx + eax*8]
mov ebp, dword [ebx + 4]
mov esi, dword [esp + 0x90]
cmp ecx, esi
jbe 0x47815a
lea edi, [edx + eax*8 + 4]
mov dword [esp + 0x70], edi
lea ecx, [edx + esi*8]
mov dword [esp + 0x6c], ecx
mov eax, dword [ecx + 4]
lea esi, [edx + esi*8 + 4]
mov edx, dword [ecx]
mov ecx, dword [ebx]
mov dword [edi], eax
mov eax, dword [0x9aef70]
test eax, eax
je 0x477bb5
mov dword [esp + 0x68], ecx
call fcn.0046c8c0
mov dword [edi], edx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov eax, ebp
mov ebp, dword [esp + 0x6c]
mov ecx, dword [ebp]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov ebp, eax
mov edi, dword [esp + 0x70]
mov dword [esp + 0x64], ebx
mov dword [ebx], edx
mov dword [esi], ebp
mov edx, dword [esp + 0x6c]
mov dword [edx], ecx
mov edx, dword [esp + 0x88]
inc edx
mov ebp, dword [esp + 0x8c]
dec ebp
mov dword [esp + 0x14], ebp
jmp 0x477bda
inc edx
mov dword [esp + 0x38], edx
cmp edx, ebp
jle 0x477be9
xor eax, eax
jmp 0x477ca6
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jbe 0x478153
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test byte [ecx], al
mov ecx, dword [esp + 0x7c]
lea ebp, [ecx + edx*8]
mov esi, dword [ebp]
mov dword [esp + 0x4c], esi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x24], ebp
mov edi, dword [ebx]
mov dword [esp + 0x5c], edi
mov ebx, dword [ebx + 4]
mov dword [esp + 0x34], ebx
mov dword [esp], esi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.00403200
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x477c69
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
call fcn.00403200
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x477c69
mov eax, 1
jmp 0x477c96
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.00403110
mov eax, dword [esp + 0x10]
test eax, eax
setl al
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x70]
test al, al
jne 0x477bd9
jmp 0x477cb1
dec ebp
mov dword [esp + 0x14], ebp
cmp ebp, edx
jge 0x477cc0
xor eax, eax
jmp 0x477d7f
mov ecx, dword [esp + 0x80]
cmp ecx, ebp
jbe 0x47814c
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test byte [ecx], al
mov ecx, dword [esp + 0x7c]
lea edx, [ecx + ebp*8]
mov esi, dword [edx]
mov dword [esp + 0x48], esi
mov edx, dword [edx + 4]
mov dword [esp + 0x20], edx
mov edi, dword [ebx]
mov dword [esp + 0x58], edi
mov ebx, dword [ebx + 4]
mov dword [esp + 0x30], ebx
mov dword [esp], esi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
call fcn.00403200
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x477d3f
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.00403200
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x477d3f
mov eax, 1
jmp 0x477d6c
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
call fcn.00403110
mov eax, dword [esp + 0x10]
test eax, eax
setl al
xor eax, 1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x70]
test al, al
jne 0x477cb0
cmp ebp, edx
jl 0x477e0f
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jbe 0x478145
mov esi, dword [esp + 0x7c]
lea eax, [esi + edx*8]
mov edi, dword [eax + 4]
cmp ecx, ebp
jbe 0x47813e
lea ebx, [esi + edx*8 + 4]
lea ecx, [esi + ebp*8]
mov dword [esp + 0x60], ecx
mov edx, dword [ecx + 4]
lea esi, [esi + ebp*8 + 4]
mov ebp, dword [ecx]
mov ecx, dword [eax]
mov dword [ebx], edx
mov edx, dword [0x9aef70]
test edx, edx
je 0x477df6
mov dword [esp + 0x68], ecx
mov edx, edi
call fcn.0046c8c0
mov dword [edi], ebp
mov ebx, dword [eax]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov ebx, dword [esp + 0x60]
mov ecx, dword [ebx]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov edi, edx
mov dword [eax], ebp
mov dword [esi], edi
mov edx, dword [esp + 0x60]
mov dword [edx], ecx
mov edx, dword [esp + 0x38]
inc edx
mov ebx, dword [esp + 0x14]
dec ebx
jmp 0x477e98
mov ecx, dword [esp + 0x80]
cmp ecx, ebp
jbe 0x477e78
mov eax, dword [esp + 0x7c]
lea ecx, [eax + ebp*8 + 4]
mov edx, dword [ebx + 4]
lea eax, [eax + ebp*8]
mov esi, dword [ebx]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ecx], edx
mov ecx, dword [0x9aef70]
test ecx, ecx
je 0x477e57
mov ecx, edi
call fcn.0046c8c0
mov dword [edi], esi
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [edi + 8], ebp
mov edx, dword [esp + 0x64]
mov edx, dword [edx]
mov dword [edi + 0xc], edx
mov edi, ecx
mov dword [eax], esi
mov dword [edi], ebx
mov eax, dword [esp + 0x64]
mov dword [eax], ebp
mov eax, dword [esp + 0x14]
mov dword [esp + 0x94], eax
mov byte [esp + 0x98], 1
add esp, 0x74
ret
mov eax, ebp
call fcn.0046c910
mov dword [esi], ebx
mov esi, dword [esp + 0x3c]
mov dword [ebp], esi
mov dword [ecx], edi
mov ebp, dword [esp + 0x38]
lea edx, [ebp + 1]
mov ebp, dword [esp + 0x14]
lea ebx, [ebp - 1]
mov dword [esp + 0x14], ebx
jmp 0x477f09
cmp ebx, edx
jl 0x4780b2
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jbe 0x478129
mov ebp, dword [esp + 0x7c]
lea esi, [ebp + edx*8]
mov edi, dword [esi + 4]
cmp ecx, ebx
jbe 0x478122
mov dword [esp + 0x3c], edi
lea eax, [ebp + edx*8 + 4]
lea ecx, [ebp + ebx*8]
mov edx, dword [ecx + 4]
mov edi, dword [esi]
lea ebp, [ebp + ebx*8 + 4]
mov ebx, dword [ecx]
mov dword [eax], edx
mov edx, dword [0x9aef70]
test edx, edx
je 0x477e7f
mov eax, edi
call fcn.0046c8c0
mov dword [edi], ebx
mov edx, dword [esi]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov edx, dword [ecx]
mov dword [edi + 0xc], edx
mov edi, eax
jmp 0x477e7f
inc edx
mov dword [esp + 0x38], edx
cmp ebx, edx
jge 0x477f18
xor eax, eax
jmp 0x477fd0
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jbe 0x478137
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test byte [ecx], al
mov ecx, dword [esp + 0x7c]
lea ebx, [ecx + edx*8]
mov ebp, dword [ebx]
mov dword [esp + 0x44], ebp
mov ebx, dword [ebx + 4]
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x64]
mov edi, dword [esi]
mov dword [esp + 0x54], edi
mov esi, dword [esi + 4]
mov dword [esp + 0x2c], esi
mov dword [esp], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00403200
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x477f9b
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
call fcn.00403200
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x477f9b
mov eax, 1
jmp 0x477fc8
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
call fcn.00403110
mov eax, dword [esp + 0x10]
test eax, eax
setl al
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
test al, al
jne 0x477f08
jmp 0x477fdb
dec ebx
mov dword [esp + 0x14], ebx
cmp ebx, edx
jge 0x477fea
xor eax, eax
jmp 0x4780a5
mov ecx, dword [esp + 0x80]
cmp ecx, ebx
jbe 0x478130
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test byte [ecx], al
mov ecx, dword [esp + 0x7c]
lea edx, [ecx + ebx*8]
mov ebp, dword [edx]
mov dword [esp + 0x40], ebp
mov edx, dword [edx + 4]
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x64]
mov edi, dword [esi]
mov dword [esp + 0x50], edi
mov esi, dword [esi + 4]
mov dword [esp + 0x28], esi
mov dword [esp], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
call fcn.00403200
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x47806d
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
call fcn.00403200
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x47806d
mov eax, 1
jmp 0x47809a
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
call fcn.00403110
mov eax, dword [esp + 0x10]
test eax, eax
setl al
xor eax, 1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
test al, al
jne 0x477fda
jmp 0x477e9e
mov ecx, dword [esp + 0x80]
cmp ecx, ebx
jbe 0x47811b
mov eax, dword [esp + 0x7c]
lea ecx, [eax + ebx*8 + 4]
mov edx, dword [esp + 0x64]
mov ebp, dword [edx + 4]
lea eax, [eax + ebx*8]
mov esi, dword [edx]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ecx], ebp
mov ecx, dword [0x9aef70]
test ecx, ecx
je 0x4780fa
mov ecx, edi
call fcn.0046c8c0
mov dword [edi], esi
mov ebp, dword [eax]
mov dword [edi + 4], ebp
mov dword [edi + 8], ecx
mov ebp, dword [edx]
mov dword [edi + 0xc], ebp
mov edi, ecx
mov dword [eax], esi
mov eax, dword [esp + 0x70]
mov dword [eax], ebx
mov dword [edx], edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x94], eax
mov byte [esp + 0x98], 0
add esp, 0x74
ret
mov eax, ebx
call fcn.0046c910
mov eax, ebx
call fcn.0046c910
mov eax, edx
call fcn.0046c910
mov eax, ebx
call fcn.0046c910
mov eax, edx
call fcn.0046c910
mov eax, ebp
call fcn.0046c910
mov eax, edx
call fcn.0046c910
mov eax, ebp
call fcn.0046c910
mov eax, edx
call fcn.0046c910
mov eax, esi
call fcn.0046c910
call fcn.0046c910
nop
call fcn.0046b490
jmp fcn.00477b20