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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x94]
xor edx, edx
div dword [esi + 0x98]
or byte [esi + 0x14], 4
mov edx, dword [edi + 0x18]
lea ecx, [edx - 1]
lea ebx, [eax - 1]
not ebx
and ebx, ecx
mov ecx, dword [esi + 0x18]
inc ebx
cmp edx, ecx
jbe 0x4c5388
mov edi, edx
sub edi, ebx
inc edi
mov dword [ebp - 4], edi
jmp 0x4c539f
lea edx, [ebx + eax - 1]
cmp edx, ecx
jbe 0x4c539a
sub ecx, ebx
inc ecx
mov dword [ebp - 4], ecx
mov edi, ecx
jmp 0x4c539f
mov dword [ebp - 4], eax
mov edi, eax
mov dword [ebp - 0x14], 0
test edi, edi
jle 0x4c5551
mov edi, ebx
cmp dword [ebp - 8], 0
jne 0x4c5551
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x18]
je 0x4c5420
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4c5420
mov eax, edi
call fcn.004b0330
test eax, eax
je 0x4c5420
mov eax, dword [esi + 0xd4]
mov ecx, dword [eax + 0x2c]
push 0
push edi
push ecx
call dword [0x58e820]
add esp, 0xc
test eax, eax
je 0x4c5417
mov ecx, dword [eax + 4]
cmp dword [ecx], 0
mov edx, dword [esi + 0xd4]
jne 0x4c5409
push eax
push edi
push edx
call fcn.004b05f0
add esp, 0xc
jmp 0x4c5417
mov eax, 1
add dword [edx + 0xc], eax
add word [ecx + 0x1e], ax
mov eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4c546b
jmp 0x4c5459
mov eax, dword [0x58e8a8]
cdq
idiv dword [esi + 0x98]
inc eax
cmp edi, eax
je 0x4c546b
mov eax, dword [esi + 0xcc]
push 0
lea edx, [ebp - 0xc]
push edx
push edi
push esi
call eax
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c546b
mov eax, dword [ebp - 0xc]
call fcn.004c52a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
test byte [eax + 0x1c], 8
je 0x4c5466
mov dword [ebp - 0x10], 1
call fcn.004b2220
mov eax, dword [ebp - 0x14]
inc eax
inc edi
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 4]
jl 0x4c53b0
cmp dword [ebp - 8], 0
jne 0x4c5551
cmp dword [ebp - 0x10], 0
je 0x4c5551
mov ecx, dword [ebp - 4]
mov edi, ebx
mov dword [ebp + 8], edi
mov dword [ebp - 0x14], ecx
jmp 0x4c54a0
mov eax, dword [esi + 0xd4]
mov edx, dword [eax + 0x2c]
push 0
push edi
push edx
call dword [0x58e820]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4c5544
mov eax, dword [ecx + 4]
cmp dword [eax], 0
mov edx, dword [esi + 0xd4]
jne 0x4c54db
push ecx
push edi
push edx
call fcn.004b05f0
add esp, 0xc
jmp 0x4c54e7
mov ecx, 1
add dword [edx + 0xc], ecx
add word [eax + 0x1e], cx
test eax, eax
je 0x4c5544
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x4c553f
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [edi]
dec eax
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 0x10]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov edi, dword [ebp + 8]
add esp, 0x10
jmp 0x4c5544
call fcn.004b0660
inc edi
dec dword [ebp - 0x14]
mov dword [ebp + 8], edi
jne 0x4c54a0
and byte [esi + 0x14], 0xfb
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret