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

Disassembly:
mov eax, 0x14d0
call fcn.004ad330
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14e0]
mov eax, dword [esi + 0x38c]
push edi
push eax
call fcn.00478d20
add esp, 4
cmp eax, 2
mov dword [esi + 0x378], eax
jne 0x537c08
mov dword [esi + 0x378], 3
call fcn.00478d80
mov edi, eax
test edi, edi
je 0x537c08
lea ecx, [esp + 0x3a0]
push ecx
call fcn.005130b0
mov eax, dword [esi + 0x38c]
lea edx, [esp + 0x3a0]
push edx
push eax
mov ecx, edi
call fcn.0047b740
test al, al
je 0x537bfb
lea ecx, [esp + 0x50]
mov dword [esi + 0x378], 2
push ecx
mov dword [esi + 0x1e18], 0
call fcn.0041efc0
mov eax, dword [esp + 0x3a8]
cmp eax, 0x19
jbe 0x537956
mov eax, 0x19
test eax, eax
jbe 0x537bf4
lea ebx, [esp + 0x3b0]
mov dword [esp + 0x14], eax
mov ecx, ebx
call fcn.0048c7b0
push eax
mov ecx, ebx
call fcn.0047b8a0
push eax
lea edi, [esp + 0x3c]
call fcn.0041f040
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
xor ebp, ebp
call fcn.0047bbf0
lea ecx, [esp + 0x4c]
cmp eax, ecx
je 0x5379a2
mov ebp, dword [eax]
test ebp, ebp
je 0x5379a2
add dword [ebp + 4], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5379ca
add dword [eax + 4], 0xffffffff
add eax, 4
cmp dword [eax], 0
jne 0x5379ca
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x10], 0
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x36c], eax
mov dword [esp + 0x370], eax
mov dword [esp + 0x374], eax
mov dword [esp + 0x378], eax
mov dword [esp + 0x37c], eax
mov dword [esp + 0x380], eax
mov byte [esp + 0x384], al
call fcn.00474960
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, 6
lea esi, [esp + 0x18]
lea edi, [esp + 0x368]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x381], edx
mov edx, dword [esp + 0x40]
xor esi, esi
push 0x180
mov dword [esp + 0x391], edx
mov dword [esp + 0x389], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38d], ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0xe4]
push esi
push edx
mov dword [esp + 0x39d], eax
mov dword [esp + 0x3a1], ecx
mov dword [esp + 0x270], esi
mov dword [esp + 0x26c], esi
call fcn.004ae0b0
push 0x100
lea eax, [esp + 0x278]
push esi
push eax
call fcn.004ae0b0
mov ecx, dword [ebx + 0xac]
mov dword [esp + 0x68], ecx
add esp, 0x18
mov ecx, ebx
call fcn.0047b8f0
mov ecx, dword [ebx + 0x2c]
movzx edx, al
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x80]
push edx
push ebx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
call fcn.00512930
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x68], edx
mov edx, dword [ebx + 0x40]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0xa0]
mov dword [esp + 0x78], edx
mov edx, dword [ebx + 0x8c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], ecx
mov eax, dword [ebx + 0x90]
mov ecx, dword [ebx + 0x94]
mov dword [esp + 0xc0], edx
mov edx, dword [ebx + 0x98]
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x9c]
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x50]
cmp edx, dword [esp + 0x54]
mov dword [esp + 0xc8], ecx
mov ecx, dword [ebx + 0xa8]
mov dword [esp + 0xd4], eax
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd8], ecx
je 0x537bc7
cmp eax, esi
jne 0x537bc7
mov eax, dword [esp + 0x14e4]
cmp dword [eax + 0x1e18], 8
jae 0x537bc7
lea ecx, [eax + 0x398]
mov eax, dword [ecx + 0x1a80]
lea edx, [eax + 1]
imul eax, eax, 0x350
add eax, ecx
mov dword [ecx + 0x1a80], edx
je 0x537bc7
mov ecx, 0xd4
lea esi, [esp + 0x50]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
test ebp, ebp
je 0x537bdc
add dword [ebp + 4], 0xffffffff
jne 0x537bdc
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
add ebx, 0xb0
sub dword [esp + 0x14], 1
jne 0x537969
mov esi, dword [esp + 0x14e4]
mov dword [esi + 0x24], 1
lea eax, [esp + 0x3a0]
push eax
call fcn.0041f000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14d0
ret 4