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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x338]
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x58], 0
je 0x538252
mov eax, ebx
call fcn.00537ac4
cmp byte [eax + 0x10], 0
jne 0x53822c
mov eax, ebx
call fcn.00537ac4
mov eax, dword [eax + 0x40]
cmp byte [eax + 0x28], 0
je 0x538252
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x10]
push eax
mov eax, dword [ebx + 0x80]
push eax
movzx eax, byte [esi + 0x34]
push eax
mov eax, ebx
call fcn.00537ac4
lea ecx, [esi + 4]
mov edx, dword [ebp - 8]
call fcn.00544568
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32], 0
je 0x538274
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dl, 1
call fcn.0045eb64
mov dl, 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x538291
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0x18]
push edx
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x1c]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0x18]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0x44]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x20]
lea edx, [esi + 0x10]
mov eax, ebx
call fcn.00538154
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
add eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
add eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
cmp byte [esi + 0x18], 0
je 0x538302
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov ecx, dword [eax + 0x2a4]
mov edx, dword [eax + 0x2a0]
lea eax, [ebp - 0x24]
call fcn.0040b0f0
mov eax, dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x54]
mov ecx, 0x168
cdq
idiv ecx
mov ecx, edx
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00520b40
mov esi, dword [ebx + 0x78]
test esi, esi
je 0x538333
mov eax, esi
call fcn.005451e0
test al, al
jne 0x538337
xor eax, eax
jmp 0x538339
mov al, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x5383bb
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x78]
call fcn.005215f4
xor edx, edx
mov eax, dword [ebx + 0x78]
call fcn.00521758
mov eax, dword [ebp - 0x14]
mov edx, 0x538434
mov ecx, dword [eax]
call dword [ecx + 0x90]
mov ecx, dword [ebp - 0x24]
mov edx, ecx
add edx, 4
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x20]
mov esi, edx
add esi, 3
mov dword [ebp - 0x30], esi
add edx, eax
sub edx, 2
mov dword [ebp - 0x28], edx
add eax, ecx
dec eax
mov dword [ebp - 0x2c], eax
mov esi, dword [ebx + 0x78]
push esi
lea edi, [esi + 0x44]
lea esi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x54]
mov ecx, 0x168
cdq
idiv ecx
mov ecx, edx
mov eax, dword [ebx + 0x78]
lea edx, [eax + 0x44]
mov eax, esi
call fcn.00520b40
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dl, 1
call fcn.0045eb64
mov dl, 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
add dword [ebp - 0x24], 2
cmp byte [ebp - 9], 0
je 0x5383ea
mov eax, dword [ebx + 0x78]
call fcn.0052153c
add eax, 4
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 0x14]
call fcn.005036a8
cmp byte [ebx + 0x84], 0
je 0x53840f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
call fcn.0045de44
lea edx, [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
call fcn.00537f3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8