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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x28], ebx
cmp dword [ebx + 4], 0
je 0x4d9889
mov dword [ebx + 4], 0
mov eax, 0x66666667
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x10]
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4d9889
cmp dword [0x5e64f8], 0
jne 0x4d972c
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x14]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebx + 0xc]
imul eax, dword [esp + 0x14]
push eax
push 0
push dword [esp + 0x20]
call fcn.00582b3f
mov edi, dword [ebx + 0x10]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov eax, 0x66666667
mov ecx, dword [ebx + 0x14]
add esp, 0xc
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4d9713
xor esi, esi
mov dword [esp + 0x1c], esi
mov ecx, dword [edi + esi]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x4d96e5
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x30]
push edx
call dword [eax + 0x10]
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + eax]
mov eax, dword [edi]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0
push 0
lea edx, [esp + 0x38]
mov dword [esp + 0x2c], eax
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebx + 0x10]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esi + eax + 8]
imul ecx, dword [esp + 0x14]
mov eax, dword [esi + eax + 4]
xor esi, esi
add ecx, dword [esp + 0x18]
lea edi, [ecx + eax*4]
cmp dword [esp + 0x20], esi
jle 0x4d96d1
nop
mov eax, dword [esp + 0x2c]
shl eax, 2
push eax
push ebx
push edi
call fcn.00582b4b
add edi, dword [esp + 0x20]
inc esi
add ebx, dword [esp + 0x3c]
add esp, 0xc
cmp esi, dword [esp + 0x20]
jl 0x4d96b0
mov ecx, dword [esp + 0x24]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + pe_nt_image_headers32]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x14]
mov eax, 0x66666667
mov edi, dword [ebx + 0x10]
add esi, 0x14
inc dword [esp + 0x10]
sub ecx, edi
imul ecx
mov dword [esp + 0x1c], esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], eax
jb 0x4d9645
mov eax, dword [ebx + 0x1c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor ecx, ecx
mov dword [esp + 0x20], ecx
test eax, eax
je 0x4d9889
xor esi, esi
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + esi]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
je 0x4d985b
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x28]
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x10]
push 0
push edx
push 2
mov eax, dword [ecx]
push 0x15
push dword [esp + 0x24]
push dword [esp + 0x38]
push ecx
call dword [eax + 0x90]
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + eax]
mov eax, dword [edi]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edx, [esp + 0x1c]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push 0
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push 0
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0x14], ebx
jle 0x4d97f5
mov eax, dword [esp + 0x24]
shl eax, 2
push eax
push edi
push esi
call fcn.00582b4b
add esi, dword [esp + 0x3c]
inc ebx
add edi, dword [esp + 0x44]
add esp, 0xc
cmp ebx, dword [esp + 0x14]
jl 0x4d97d4
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0x40]
mov esi, dword [esp + 0x2c]
push edx
mov ecx, dword [ebx + 0x10]
push dword [ebx + 0x20]
push 0
mov eax, dword [ecx + esi + 4]
push dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + esi + 8]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x54], eax
push ecx
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4d985b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x10], 0
mov ecx, dword [ebx + 0x14]
mov eax, 0x66666667
mov edi, dword [ebx + 0x10]
add esi, 0x14
inc dword [esp + 0x20]
sub ecx, edi
imul ecx
mov dword [esp + 0x2c], esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x4d9740
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc