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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5195cd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, esi
call fcn.0043bfb1
test eax, eax
je 0x4d0a3d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
je 0x4d0a3d
cmp dword [eax + 0x54], ecx
je 0x4d0a3d
cmp dword [eax + 0x4c], ecx
je 0x4d0a3d
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x60], ecx
lea eax, [esp + 0x14]
lea ebx, [esp + 0x24]
mov dword [esp + 0x14], esi
call fcn.00418561
lea eax, [esp + 0x14]
lea ebx, [esp + 0x2c]
call fcn.0041857c
lea edi, [esp + 0x2c]
lea esi, [esp + 0x24]
call fcn.00411e4b
test al, al
jne 0x4d09ec
call fcn.00407031
mov esi, eax
mov edx, dword [esi]
cmp dword [edx], 1
mov dword [esp + 0x14], esi
je 0x4d08ae
cmp dword [edx], 2
jne 0x4d091a
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
mov byte [esp + 0x60], 1
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edi, dword [ecx]
lea ebx, [esp + 0x34]
push ebx
add eax, 0x54
push eax
add edx, 4
push edx
call dword [edi + 0x18]
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
cmp dword [esp + 0x38], ebx
je 0x4d0928
mov eax, ecx
sub eax, dword [esp + 0x38]
sar eax, 2
cmp eax, 1
jne 0x4d0928
cmp eax, ebx
ja 0x4d08fe
call fcn.00447be0
mov eax, dword [esi]
lea edi, [eax + 4]
mov eax, dword [esp + 0x38]
call fcn.004129e9
lea esi, [esp + 0x34]
mov byte [esp + 0x60], 0
call fcn.00411edc
lea esi, [esp + 0x24]
call fcn.0040c53c
jmp 0x4d0882
cmp dword [esp + 0x38], 0
je 0x4d090c
sub ecx, dword [esp + 0x38]
sar ecx, 2
cmp ebx, ecx
jae 0x4d090c
test ebx, ebx
jne 0x4d095a
test ecx, ecx
ja 0x4d0947
call fcn.00447be0
mov edi, dword [esi]
mov eax, dword [esp + 0x38]
add edi, 4
call fcn.004129e9
jmp 0x4d09e2
push 0xc
call fcn.004484be
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x60], 2
je 0x4d0979
push dword [esi]
push eax
call fcn.004101da
jmp 0x4d097b
xor eax, eax
mov edi, eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x60], 1
call fcn.0040ba8e
mov byte [esp + 0x60], 3
cmp dword [esp + 0x38], 0
je 0x4d09a6
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
sar eax, 2
cmp ebx, eax
jb 0x4d09ab
call fcn.00447be0
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
lea eax, [eax + ebx*4]
add edi, 4
call fcn.004129e9
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x48]
call fcn.00403f01
mov byte [esp + 0x60], 1
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4d09de
call fcn.00411e0e
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
inc ebx
jmp 0x4d0928
mov eax, dword [esp + 0x4c]
xor ebx, ebx
cmp dword [esp + 0x48], eax
mov dword [esp + 0x14], eax
jbe 0x4d0a01
call fcn.00447be0
mov edi, dword [esp + 0x48]
cmp edi, dword [esp + 0x4c]
lea esi, [esp + 0x44]
jbe 0x4d0a14
call fcn.00447be0
push dword [ebp + 0xc]
lea eax, [esp + 0x48]
push ebx
push dword [esp + 0x1c]
lea ebx, [esp + 0x38]
push esi
push edi
push eax
call fcn.00431add
or dword [esp + 0x78], 0xffffffff
add esp, 0x18
lea esi, [esp + 0x44]
call fcn.0043b1c6
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8