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

Disassembly:
sub esp, 0x8f0
mov edx, dword [esp + 0x8f4]
push ebx
push ebp
mov ebp, dword [esp + 0x920]
mov ecx, dword [edx + 0x10]
push esi
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x908]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0x14]
push edi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x910]
sub eax, ecx
mov ecx, 0x6a
mov dword [esp + 0x54], eax
xor eax, eax
lea edi, [esp + 0x60]
mov ebx, dword [esp + 0x908]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0x6c]
mov dword [esp + 0x130], ecx
mov ecx, eax
shr ecx, 2
and ecx, 1
xor esi, esi
mov dword [esp + 0x138], ecx
mov ecx, dword [ebx + 0x10]
and ecx, 0x2000
mov dword [esp + 0x24], esi
mov dword [esp + 0x140], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x34], esi
mov dword [esp + 0xf4], esi
mov esi, ecx
mov dword [esp + 0x1b8], ecx
imul esi, ecx
lea ecx, [esp + 0x73f]
mov dword [esp + 0x1e8], esi
not eax
and ecx, 0xffffffc0
and eax, 1
mov dword [esp + 0x1b4], ecx
mov ecx, dword [esp + 0x920]
mov dword [esp + 0x1bc], eax
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1cc], eax
mov eax, dword [ecx + 4]
mov ecx, 0x6a
lea esi, [esp + 0x60]
lea edi, [esp + 0x3b0]
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], 0x100000
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x6a
lea esi, [esp + 0x60]
lea edi, [esp + 0x208]
mov dword [ebx + 0x20], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x6a
lea esi, [esp + 0x60]
lea edi, [esp + 0x558]
mov dword [esp + 0x484], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x62c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov dword [esp + 0x65c], eax
mov dword [esp + 0x2dc], eax
mov eax, dword [edx + 0x14]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ebp
jbe 0x471277
mov esi, dword [0x483734]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor edi, edi
div ecx
xor edx, edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], esi
imul eax, ecx
mov ecx, dword [esp + 0x93c]
lea eax, [eax + ecx - 1]
div ecx
mov edx, eax
mov eax, dword [0x483730]
imul edx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x904]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0x10]
test eax, eax
jbe 0x47124a
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
jmp 0x470d05
mov edx, dword [esp + 0x3c]
imul eax, ebp
add eax, edi
mov esi, dword [ebx + 0x44]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x58]
shl eax, 3
add esi, eax
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
cmp ecx, edx
jne 0x470d39
test ebp, ebp
mov dword [esp + 0x18], 1
ja 0x470d41
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x938]
mov ecx, dword [esp + 0x934]
push eax
lea eax, [ebx + 0x38]
mov dword [esi + 0xec], 0xffffffff
push eax
mov eax, dword [edx]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x93c]
push edx
mov edx, dword [esp + 0x93c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x934]
push ecx
push edx
mov ecx, dword [eax]
mov edx, dword [esp + 0x938]
push ecx
mov ecx, dword [esp + 0x938]
mov eax, dword [edx]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x938]
push edx
push eax
push ebp
lea ecx, [esp + 0x584]
push edi
lea edx, [esp + 0x238]
push ecx
lea eax, [esp + 0x3e4]
push edx
lea ecx, [esp + 0x98]
push eax
push ecx
call fcn.004712a0
mov edx, dword [esp + 0x968]
add esp, 0x40
cmp dword [edx + 0x14], 3
je 0x470e21
mov ecx, dword [esp + 0x1c]
mov eax, 0x10
cmp dword [ecx + 0xec], eax
jne 0x470e21
mov dword [esi + 0xec], eax
mov edx, dword [0x483730]
mov dword [esi + 0x194], edx
mov eax, dword [0x483734]
mov dword [esi + 0x198], eax
mov ecx, dword [0x483730]
mov dword [esi], ecx
mov edx, dword [0x483734]
mov dword [esi + 4], edx
mov dword [esi + 0x154], 0
jmp 0x471221
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x908]
push ecx
mov ecx, dword [esp + 0x918]
push edx
mov edx, dword [esp + 0x60]
push esi
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push ebp
push edi
call fcn.00471cb0
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xec]
add esp, 0x28
cmp eax, 4
jne 0x470e7c
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x178], 0
mov dword [esi + 0x154], ecx
jmp 0x471221
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
push edx
push eax
lea edx, [esp + 0x3b8]
push ecx
push edx
mov edx, dword [esp + 0x914]
lea eax, [esp + 0x20]
push 3
lea ecx, [esp + 0x58]
push eax
mov eax, dword [ebx + 0x20]
push ecx
mov ecx, dword [ebx + 0x10]
push esi
push edx
push eax
push ecx
push ebp
push edi
call fcn.00471500
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
push edx
push eax
lea edx, [esp + 0x244]
push ecx
push edx
mov edx, dword [esp + 0x948]
lea eax, [esp + 0x54]
push 2
lea ecx, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, dword [ebx + 0x10]
push esi
push edx
push eax
push ecx
push ebp
push edi
call fcn.00471500
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x78]
add esp, 0x68
test eax, 0x10000000
je 0x470f18
mov dword [esp + 0x30], edx
jmp 0x470f22
mov ecx, edx
sar ecx, 1
add ecx, edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c0]
cmp edx, ecx
jg 0x470f51
lea edx, [esp + 0x3b0]
lea ecx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x908]
push ecx
push edx
push eax
push ebp
push edi
call fcn.00471880
add esp, 0x18
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x218]
cmp ecx, eax
jg 0x470f83
mov eax, dword [esp + 0x904]
lea ecx, [esp + 0x208]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
push ecx
push ebp
push edi
call fcn.00471880
add esp, 0x18
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x22c]
mov ecx, dword [esp + 0x3d8]
push edx
mov edx, dword [esp + 0x3d8]
push eax
push ecx
lea eax, [esp + 0x564]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x91c]
lea eax, [esp + 0x5c]
push edx
mov edx, dword [ebx + 0x10]
push eax
push ecx
push edx
push ebp
push edi
call fcn.004728d0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x598]
mov edx, ecx
add esp, 0x30
sar edx, 3
add edx, ecx
cmp eax, edx
jge 0x470fef
test dword [ebx + 0x10], 0x8000000
je 0x470ff3
cmp eax, ecx
jg 0x47101a
mov edx, dword [esp + 0x904]
lea eax, [esp + 0x558]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push ebp
push edi
call fcn.00472dd0
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov eax, dword [esp + 0x70]
lea edx, [ecx + ecx]
cmp eax, edx
jg 0x47105b
mov eax, dword [ebx + 0x10]
test eax, 0x4000000
jne 0x471037
cmp ecx, 0x2ee
jg 0x47103f
cmp ecx, 0x3e8
jle 0x47105b
lea ecx, [esp + 0x60]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push eax
call fcn.00472550
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esp + 0x1b8]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x14]
shl edx, 3
cmp eax, edx
jae 0x4710c8
lea ebp, [eax + 1]
lea eax, [ecx + ecx*4]
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
div ebp
cmp eax, 0x32
jbe 0x4710c4
lea eax, [esp + 0x60]
xor ebp, ebp
push eax
push esi
mov dword [esp + 0xf8], ebp
call fcn.00471a40
mov eax, dword [esi + 0xec]
add esp, 8
cmp eax, 4
jne 0x4710c0
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x178], ebp
mov ebp, dword [esp + 0x20]
mov dword [esi + 0x154], ecx
jmp 0x471221
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov eax, dword [ebx + 0xc]
test ah, 0x20
je 0x47111f
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [ebx + 0x10]
push ecx
mov ecx, dword [esp + 0x90c]
push ebp
push edi
push ecx
push eax
lea eax, [esp + 0x64]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
lea eax, [esp + 0x580]
push esi
lea ecx, [esp + 0x3dc]
push eax
lea edx, [esp + 0x238]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call fcn.004772a0
add esp, 0x3c
jmp 0x471159
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x568]
push esi
lea eax, [esp + 0x3c4]
push edx
lea ecx, [esp + 0x220]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.004730d0
add esp, 0x24
mov eax, dword [esi + 0xec]
cmp eax, 3
mov dword [esp + 0x18], eax
je 0x47116d
cmp eax, 1
jne 0x4711c3
mov eax, dword [esp + 0x138]
lea ecx, [esi + 0x124]
test eax, eax
jne 0x471180
mov ecx, esi
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
cmp edx, eax
mov dword [esp + 0x14], ecx
jle 0x471192
mov eax, edx
jmp 0x4711a1
or ecx, 0xffffffff
sub ecx, edx
mov edx, dword [esp + 0x24]
cmp ecx, edx
jle 0x4711a1
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
cmp edx, eax
jle 0x4711b0
mov eax, edx
jmp 0x4711bb
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x4711bb
mov eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x4711cd
cmp eax, 1
jne 0x471221
mov eax, dword [esp + 0x138]
test eax, eax
je 0x4711e0
add esi, 0x1b4
jmp 0x4711e6
add esi, 0x194
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
cmp edx, eax
mov dword [esp + 0x14], esi
jle 0x4711f8
mov eax, edx
jmp 0x471203
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x471203
mov eax, ecx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 4]
cmp edx, eax
jle 0x471212
mov eax, edx
jmp 0x47121d
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x47121d
mov eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x904]
mov edx, dword [esp + 0x28]
inc edi
inc edx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], edx
cmp edi, eax
jb 0x470d01
mov esi, dword [0x483734]
mov ecx, dword [esp + 0x93c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
add edi, ecx
mov ecx, dword [esp + 0x40]
add edx, ecx
inc ebp
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x904]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], edi
cmp ebp, dword [edx + 0x14]
jb 0x470ca5
mov eax, dword [esp + 0x24]
push eax
call fcn.00469dc0
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x20], eax
push ecx
call fcn.00469dc0
add esp, 8
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f0
ret