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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x56e754]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x1c]
push 0x40000
push 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
call fcn.004effff
push 4
push 4
mov ebx, eax
call fcn.004effff
mov esi, eax
push 4
push 4
mov dword [esp + 0x2c], esi
call fcn.004effff
mov edi, eax
mov dword [esp + 0x40], 0
mov eax, esi
mov dword [esp + 0x3c], edi
add esp, 0x18
mov dword [esp + 0x10], 4
sub eax, edi
lea ecx, [edi + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], ecx
nop dword [eax + eax]
push 0x1c
mov dword [esp + 0x40], 0
call fcn.004ca790
mov ecx, dword [esp + 0x20]
add esp, 4
mov esi, eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], esi
push 0
push 4
push 0x425a10
push esi
push 0x425830
push dword [esp + 0x2c]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 4], eax
mov dword [esi + 8], 4
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
call fcn.00473c70
push 0x1c
push esi
call fcn.004ca782
mov eax, dword [esp + 0x44]
add esp, 8
cmp dword [esp + 0x10], 1
je 0x47432a
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0xc]
push eax
push 1
mov dword [ecx + esi], eax
call fcn.004effff
push 0x1c
mov dword [esi], eax
call fcn.004ca790
mov edx, dword [esp + 0x48]
mov esi, eax
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x34], esi
mov ecx, dword [ecx]
push 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 8], edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
push dword [esp + 0x40]
push 0x425a10
push esi
push 0x425830
push dword [esp + 0x2c]
call fcn.00473c70
push 0x1c
push esi
call fcn.004ca782
mov eax, dword [esp + 0x18]
add esp, 8
sub dword [esp + 0xc], 4
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jg 0x474210
mov esi, dword [esp + 0x14]
jmp 0x474349
mov esi, dword [esp + 0x14]
push 0x100000
push 1
mov dword [esp + 0x30], eax
mov dword [esi], 0x100000
call fcn.004effff
add esp, 8
mov dword [edi], eax
mov ecx, dword [edi + 4]
lea eax, [ebx + 0x40000]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov eax, dword [esi + 4]
add eax, ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 8]
add eax, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0xc]
lea edi, [esp + 0x7c]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [esp + 0x4c], ecx
cmp dword [ebp + 0x18], 0
mov ecx, 0x81
mov dword [esp + 0x5c], eax
mov eax, 0x4000400
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], 9
mov byte [esp + 0x73], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x6c], 0
jl 0x4744f2
jg 0x4743ec
cmp dword [ebp + 0x14], 0
jbe 0x4744f2
mov edi, dword [esp + 0x20]
jmp 0x4743f6
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x40]
call fcn.00477d80
cmp dword [esp + 0x68], 0
jne 0x47449b
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x10]
mov edi, dword [esi]
cmp eax, edi
push 0x1c
cmovbe edi, eax
call fcn.004ca790
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x24]
mov esi, eax
mov dword [esp + 0x34], esi
mov edx, dword [edx]
mov ecx, dword [ecx]
push 0
push edi
push 0x425a10
push esi
push 0x425830
push dword [esp + 0x2c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 0
mov dword [esi + 8], edx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
call fcn.00473c70
push 0x1c
push esi
call fcn.004ca782
mov eax, dword [esp + 0x2c]
add esp, 8
mov eax, dword [eax]
mov dword [esp + 0x40], eax
add eax, edi
add dword [esp + 0x10], edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x60]
sub eax, ebx
push eax
push ebx
push dword [esp + 0x34]
call dword [esp + 0x3c]
add esp, 0xc
mov esi, eax
test edi, edi
je 0x4744c0
mov edx, dword [edi]
mov ecx, edi
push 0
push esi
push 0
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
lea edx, [ebx + 0x40000]
mov dword [esp + 0x64], edx
add ecx, esi
xor edx, edx
mov dword [esp + 0xc], ecx
mov eax, ebx
mov dword [esp + 0x60], eax
cmp edx, dword [ebp + 0x18]
jl 0x4743f2
jg 0x4744fa
cmp ecx, dword [ebp + 0x14]
jb 0x4743f2
jmp 0x4744fa
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x20]
sub eax, ebx
push eax
push ebx
push dword [esp + 0x34]
call dword [esp + 0x3c]
add esp, 0xc
test edi, edi
je 0x474519
mov edx, dword [edi]
mov ecx, edi
push 0
push eax
push 0
call dword [edx + 4]
push ebx
call fcn.004ef010
mov ebx, dword [esp + 0x28]
add esp, 4
xor esi, esi
push dword [ebx + esi*4]
call fcn.004ef010
inc esi
add esp, 4
cmp esi, 4
jl 0x474528
push ebx
call fcn.004ef010
add esp, 4
push dword [esp + 0x14]
call fcn.004ef010
mov ecx, dword [esp + 0x288]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ca771
mov esp, ebp
pop ebp
ret