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

Disassembly:
push 0xffffffffffffffff
push 0x4a6aa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov al, byte [esp + 0x1b]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov cl, byte [esp + 0x2b]
mov dword [esp + 0x154], edi
mov byte [esp + 0x4c], cl
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dl, byte [esp + 0x2b]
xor eax, eax
mov byte [esp + 0x3c], dl
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edi
mov edx, dword [ebx + 0x13c]
mov byte [esp + 0x154], 2
inc edx
mov ecx, edx
mov dword [ebx + 0x13c], edx
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x16c]
cmp ecx, edi
je 0x470a46
mov edx, dword [esp + 0x164]
push ecx
mov ecx, esp
mov dword [esp + 0x100], esp
push edx
call fcn.00496c9e
lea eax, [esp + 0x7c]
mov ecx, ebx
push eax
call fcn.00476670
mov ebp, dword [eax]
mov eax, dword [eax + 4]
lea edx, [esp + 0x84]
mov dword [esp + 0x64], eax
mov ecx, 1
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x18]
push edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
push ecx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x98], ebp
call fcn.0047cbd0
mov eax, dword [ebx + 0x260]
lea esi, [ebx + 0x258]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.0047c6b0
cmp ebp, edi
je 0x470e03
cmp dword [esp + 0x64], edi
je 0x470e03
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
push eax
call fcn.0047d6a0
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push edi
call fcn.0047b310
xor eax, eax
xor ecx, ecx
test ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
jle 0x4709d4
mov esi, dword [ebx + 0x138]
mov ecx, dword [ebx + 0x25c]
shl esi, 4
add esi, ecx
lea edx, [esp + 0x10]
cmp edx, esi
je 0x470b7c
mov edi, dword [esi + 4]
test edi, edi
je 0x470a82
mov ecx, dword [esi + 8]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x470aba
mov eax, dword [esi + 8]
push 0
push eax
push edi
call fcn.0047d6a0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0047b310
mov ecx, esi
call fcn.0047b280
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*8]
mov dword [esp + 0x18], ecx
jmp 0x470b78
mov ecx, esi
call fcn.0047b280
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.0047b250
cmp edi, eax
ja 0x470b1e
mov edi, dword [esi + 4]
lea ecx, [esp + 0x10]
call fcn.0047b280
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [esi + 4]
push ecx
lea edi, [edi + edx*8]
push edi
push eax
call fcn.0047d6a0
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x10]
push edx
push eax
push edi
call fcn.0047b2b0
mov ecx, esi
call fcn.0047b280
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*8]
mov dword [esp + 0x18], edx
jmp 0x470b78
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0047b310
mov edx, dword [esp + 0x14]
push edx
call fcn.00496c93
add esp, 4
mov ecx, esi
call fcn.0047b280
test eax, eax
jge 0x470b4b
xor eax, eax
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.00496c6a
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.0047b2b0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
mov ecx, 6
lea edi, [esp + 0x84]
lea edx, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0xf4]
mov esi, dword [ebx + 0x26c]
mov ebp, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
shl edi, 5
add esi, edi
mov dword [esp + 0x60], ebp
cmp edx, esi
mov dword [esp + 0x64], ecx
je 0x470cdd
mov edx, dword [esi + 4]
test edx, edx
jne 0x470bcd
xor ecx, ecx
jmp 0x470bd5
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp dword [esp + 0x40], 0
jne 0x470be0
xor eax, eax
jmp 0x470be7
sub eax, dword [esp + 0x40]
sar eax, 2
cmp ecx, eax
ja 0x470c23
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 8]
push ecx
push eax
push edx
call fcn.0047d6e0
mov edx, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x3c]
push edx
push eax
call fcn.0047b310
mov ecx, esi
call fcn.0044ecc0
mov ecx, dword [esp + 0x40]
lea edx, [ecx + eax*4]
mov dword [esp + 0x44], edx
jmp 0x470cdd
mov ecx, esi
call fcn.0044ecc0
lea ecx, [esp + 0x3c]
mov ebp, eax
call fcn.0047b2f0
cmp ebp, eax
ja 0x470c82
mov ebp, dword [esi + 4]
lea ecx, [esp + 0x3c]
call fcn.0044ecc0
mov ecx, dword [esp + 0x40]
lea ebp, [ebp + eax*4]
mov eax, dword [esi + 4]
push ecx
push ebp
push eax
call fcn.0047d6e0
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x3c]
push edx
push eax
push ebp
call fcn.0046dbb0
mov ecx, esi
call fcn.0044ecc0
mov ecx, dword [esp + 0x40]
lea edx, [ecx + eax*4]
mov dword [esp + 0x44], edx
jmp 0x470cd9
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0047b310
mov edx, dword [esp + 0x40]
push edx
call fcn.00496c93
add esp, 4
mov ecx, esi
call fcn.0044ecc0
test eax, eax
jge 0x470caf
xor eax, eax
shl eax, 2
push eax
call fcn.00496c6a
add esp, 4
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x48]
call fcn.0046dbb0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov ebp, dword [esp + 0x60]
mov esi, dword [ebx + 0x26c]
lea ecx, [esp + 0x4c]
lea esi, [esi + edi + 0x10]
cmp ecx, esi
je 0x470e03
mov eax, dword [esi + 4]
test eax, eax
jne 0x470cfe
xor edi, edi
jmp 0x470d06
mov edi, dword [esi + 8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x4c]
call fcn.0044ecc0
cmp edi, eax
ja 0x470d4e
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.0047d6e0
mov ecx, dword [esp + 0x60]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x54]
call fcn.0047b310
mov ecx, esi
call fcn.0044ecc0
mov edx, dword [esp + 0x50]
lea eax, [edx + eax*4]
mov dword [esp + 0x54], eax
jmp 0x470e03
mov ecx, esi
call fcn.0044ecc0
lea ecx, [esp + 0x4c]
mov edi, eax
call fcn.0047b2f0
cmp edi, eax
ja 0x470dac
mov edi, dword [esi + 4]
lea ecx, [esp + 0x4c]
call fcn.0044ecc0
mov ecx, dword [esp + 0x50]
lea edi, [edi + eax*4]
mov eax, dword [esi + 4]
push ecx
push edi
push eax
call fcn.0047d6e0
mov edx, dword [esp + 0x60]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x4c]
push edx
push eax
push edi
call fcn.0046dbb0
mov ecx, esi
call fcn.0044ecc0
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax*4]
mov dword [esp + 0x54], edx
jmp 0x470e03
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.0047b310
mov edx, dword [esp + 0x50]
push edx
call fcn.00496c93
add esp, 4
mov ecx, esi
call fcn.0044ecc0
test eax, eax
jge 0x470dd9
xor eax, eax
shl eax, 2
push eax
call fcn.00496c6a
add esp, 4
mov dword [esp + 0x50], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x58]
call fcn.0046dbb0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax