Function at 0x477350
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 0x477636
mov eax, dword [0x5ed0c0]
mov ebp, dword [eax + 0x1768]
mov eax, dword [ebx + 0x24]
xor edi, edi
mov dword [esp + 0x1c], eax
cmp word [eax], di
je 0x477636
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 0x477636
dec ebp
cmp ebp, edi
jl 0x4773fd
mov esi, ebp
shl esi, 7
nop
cmp ebp, edi
mov eax, dword [0x5ed0c0]
jl 0x477613
cmp ebp, dword [eax + 0x1768]
jge 0x477613
mov eax, dword [eax + 0x1764]
mov ecx, dword [esp + 0x1c]
add eax, esi
mov eax, dword [eax]
push eax
push ecx
call fcn.0054022e
add esp, 8
test eax, eax
je 0x4773fd
dec ebp
add esi, 0xffffff80
cmp ebp, edi
jge 0x4773c0
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.0053ff80
add esp, 0xc
cmp ebp, edi
jl 0x4774eb
mov eax, dword [0x5ed0c0]
cmp ebp, dword [eax + 0x1768]
jge 0x477613
mov esi, dword [eax + 0x1764]
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 [0x5ed0c0]
mov ecx, dword [esi + 0x1768]
lea edi, [esi + 0x1768]
lea eax, [ebp + 1]
cmp eax, ecx
jg 0x477613
cmp eax, ebp
jl 0x477613
cmp eax, 1
jl 0x477613
sub ecx, eax
je 0x4774e7
mov esi, dword [esi + 0x1764]
shl ecx, 7
shl eax, 7
push ecx
add eax, esi
push eax
add edx, esi
push ecx
push edx
call fcn.0053fb29
push eax
call fcn.00401290
add esp, 0x14
dec dword [edi]
jmp 0x4774fd
mov eax, dword [esp + 0x1c]
push edi
push eax
call fcn.0044d300
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.004ff96a
mov eax, dword [ebx + 0xf0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ff95f
add esp, 8
cmp dword [ebx + 0xf0], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 0
jle 0x477584
xor eax, eax
cmp dword [ebx + 0x2e8], eax
jle 0x477584
xor ecx, ecx
mov edx, dword [ebx + 0x334]
cmp dword [ecx + edx + 0x14], 0
je 0x477578
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 + 0x2e8]
jl 0x477559
cmp dword [0x5ed764], 0
je 0x4775ad
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.00473f00
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.00471210
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.00504314
mov ecx, eax
call fcn.00500fb1
mov esi, dword [0x5ed0c0]
mov edi, dword [esi + 0x1768]
add esi, 0x1760
test edi, edi
jge 0x477618
call fcn.00507f95
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
mov ecx, esi
call fcn.004127e0
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