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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x58]
push esi
push edi
call edx
test eax, eax
jne 0x478336
mov eax, dword [0x5ed04c]
mov ebp, dword [eax + 0x1690]
mov eax, dword [ebx + 0x24]
xor edi, edi
mov dword [esp + 0x1c], eax
cmp word [eax], di
je 0x478336
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call edx
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x478336
dec ebp
cmp ebp, edi
jl 0x4780fd
mov esi, ebp
shl esi, 7
nop
cmp ebp, edi
mov eax, dword [0x5ed04c]
jl 0x478313
cmp ebp, dword [eax + 0x1690]
jge 0x478313
mov eax, dword [eax + 0x168c]
mov ecx, dword [esp + 0x1c]
add eax, esi
mov eax, dword [eax]
push eax
push ecx
call fcn.005408be
add esp, 8
test eax, eax
je 0x4780fd
dec ebp
add esi, 0xffffff80
cmp ebp, edi
jge 0x4780c0
push 0x2c
lea edx, [esp + 0x78]
push edi
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov byte [esp + 0x6c], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], edi
call fcn.00540610
add esp, 0xc
cmp ebp, edi
jl 0x4781eb
mov eax, dword [0x5ed04c]
cmp ebp, dword [eax + 0x1690]
jge 0x478313
mov esi, dword [eax + 0x168c]
mov edx, ebp
shl edx, 7
add esi, edx
mov ecx, 0x20
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x5ed04c]
mov ecx, dword [esi + 0x1690]
lea edi, [esi + 0x1690]
lea eax, [ebp + 1]
cmp eax, ecx
jg 0x478313
cmp eax, ebp
jl 0x478313
cmp eax, 1
jl 0x478313
sub ecx, eax
je 0x4781e7
mov esi, dword [esi + 0x168c]
shl ecx, 7
shl eax, 7
push ecx
add eax, esi
push eax
add edx, esi
push ecx
push edx
call fcn.0053fe51
push eax
call fcn.004012a0
add esp, 0x14
dec dword [edi]
jmp 0x4781fd
mov eax, dword [esp + 0x1c]
push edi
push eax
call fcn.0044df70
add esp, 8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x74]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x70]
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x38], edx
call fcn.004ff267
mov eax, dword [ebx + 0xf0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff272
add esp, 8
cmp dword [ebx + 0xf0], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0
jle 0x478284
xor eax, eax
cmp dword [ebx + 0x2d0], eax
jle 0x478284
xor ecx, ecx
mov edx, dword [ebx + 0x31c]
cmp dword [ecx + edx + 0x14], 0
je 0x478278
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
lea edx, [eax + 1]
mov dword [edi + esi*4], edx
inc dword [esp + 0x38]
inc eax
add ecx, 0x24
cmp eax, dword [ebx + 0x2d0]
jl 0x478259
cmp dword [0x5ed6f4], 0
je 0x4782ad
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call fcn.00474c90
mov edx, dword [ebx + 0xf8]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x44], edx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x20]
push eax
push esi
mov ecx, ebx
call fcn.00472280
mov ecx, dword [ebx + 0x78]
lea edx, [esp + 0x74]
mov dword [esp + 0x70], ecx
push edx
mov ecx, esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x78], 0x2c
call fcn.00503c1f
mov ecx, eax
call fcn.005008b1
mov esi, dword [0x5ed04c]
mov edi, dword [esi + 0x1690]
add esi, 0x1688
test edi, edi
jge 0x478318
call fcn.005078a4
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, esi
call fcn.00412650
shl edi, 7
add edi, dword [esi + 4]
mov ecx, 0x20
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret