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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62f228
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x652018]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x4d13ef
test edx, edx
je 0x4d13ef
mov eax, dword [0x65e8d4]
add eax, 4
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov word [esp + 0x68], 0
mov byte [esp + 0x6a], 0
mov dword [esp + 0x64], 8
mov dword [esp + 0x78], 0
mov ebx, edx
cmp byte [ebp + 8], 0
mov dword [esp + 0x1c], ebx
je 0x4d1203
push edx
mov edx, 2
lea ecx, [esp + 0x40]
call 0x3ca45e
mov ebx, dword [eax]
mov dword [esp + 0x1c], ebx
push ebx
mov edx, 4
lea ecx, [esp + 0x40]
call 0x3c27ae
lea ecx, [esp + 0x4c]
mov edi, dword [eax]
push edi
call 0x3bcd8e
push ebx
mov edx, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x40]
call 0x3c27ae
lea ecx, [esp + 0x4c]
mov esi, dword [eax]
push esi
call 0x3bcd8e
push edi
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
call 0x5a49da
add esp, 0xc
push esi
mov esi, dword [esp + 0x24]
push 0
push esi
call 0x5a49da
mov edx, dword [esp + 0x40]
add esp, 0xc
mov edi, dword [esp + 0x30]
mov eax, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], edx
test edi, edi
je 0x4d1377
mov ecx, dword [esp + 0x14]
sub ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], ecx
mov edi, edi
test eax, eax
je 0x4d136f
mov eax, dword [eax]
lea ecx, [esp + 0x40]
mov edx, 1
mov eax, dword [eax]
movzx edi, word [eax - 4]
push edi
call 0x3d0d2e
mov edx, 2
lea ecx, [esp + 0x44]
mov ebx, dword [eax]
push ebx
call 0x3c27ae
mov esi, dword [eax]
mov eax, esi
mov dword [esp + 0x24], eax
test esi, esi
jne 0x4d12d9
cmp dword [esp + 0x4c], esi
jne 0x4d12d9
mov eax, 1
mov dword [esp + 0x24], eax
push eax
mov edx, 3
lea ecx, [esp + 0x4c]
call 0x3bd1ce
mov ecx, dword [esp + 0x4c]
mov edx, dword [eax]
mov eax, dword [esp + 0x50]
and edx, 0xfffffffc
sub eax, ecx
mov dword [esp + 0x38], edx
cmp eax, edx
jae 0x4d1314
push dword [esp + 0x24]
lea ecx, [esp + 0x50]
call 0x3bcefe
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
push esi
mov eax, ecx
add ecx, edx
push 0
push eax
mov dword [esp + 0x58], ecx
call 0x5a49da
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov esi, eax
mov ecx, dword [ecx]
push ebx
push esi
push dword [ecx]
call 0x5a07e5
mov ecx, dword [esp + 0x2c]
add edi, edi
mov eax, dword [esp + 0x3c]
mov dword [eax + ecx], esi
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov dword [ecx], edi
inc esi
mov edi, dword [esp + 0x30]
add ecx, 4
mov eax, dword [eax + 0x24]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], eax
cmp esi, edi
jb 0x4d128e
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
cmp byte [ebp + 8], 0
je 0x4d13b7
xor esi, esi
test edi, edi
je 0x4d13b7
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
sub eax, ebx
mov dword [esp + 0x3c], eax
lea ecx, [ebx + edi*4]
mov ebx, eax
test edx, edx
je 0x4d13b3
mov eax, dword [edx]
inc esi
add eax, 0xc
mov dword [ecx + ebx], eax
mov dword [ecx], 0x10
add ecx, 4
mov edx, dword [edx + 0x24]
cmp esi, edi
jb 0x4d1396
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0042ad4e
mov esi, eax
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x4c]
call 0x3bd04e
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4