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

Disassembly:
push 0xffffffffffffffff
push 0x5d701d
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, ecx
push 1
mov dword [esp + 0x18], 0
call fcn.004d1ed0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x4d5a38
mov ecx, edi
call fcn.004d4130
mov ecx, edi
mov esi, eax
call fcn.004d4250
mov ebp, eax
mov eax, dword [ebx + 4]
push 1
push eax
lea ecx, [esp + 0x80]
call fcn.004b9e70
test esi, esi
mov dword [esp + 0xd0], 0
je 0x4d583f
mov ecx, esi
call fcn.004b57d0
mov edi, dword [eax + 0x14]
mov ecx, esi
call fcn.004b57d0
cmp dword [eax + 0x18], 0x10
jb 0x4d582b
mov eax, dword [eax + 4]
jmp 0x4d582e
add eax, 4
push 0
push edi
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004b6c70
test ebp, ebp
je 0x4d585d
push 1
lea ecx, [esp + 0xa4]
call fcn.00506250
test eax, eax
je 0x4d585d
push eax
mov ecx, ebp
call fcn.004ba060
lea ecx, [esp + 0xa0]
call fcn.004b5e10
lea ecx, [esp + 0xa0]
call fcn.00504b00
test eax, eax
je 0x4d58d8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
mov ebp, eax
mov ebx, dword [ebp + 4]
mov edi, dword [ebx]
lea esp, [esp]
cmp edi, ebx
je 0x4d58d4
cmp edi, dword [ebp + 4]
jne 0x4d589e
call fcn.0044b7ad
mov esi, dword [edi + 8]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
cmp eax, 0x38
jne 0x4d58c6
mov ecx, dword [esp + 0xd8]
push 0xffffffffffffffff
add ecx, 4
push 0
push ecx
lea ecx, [esi + 8]
call fcn.00402bb0
cmp edi, dword [ebp + 4]
jne 0x4d58d0
call fcn.0044b7ad
mov edi, dword [edi]
jmp 0x4d5890
mov ebx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xa4]
call fcn.004b96c0
mov eax, dword [ebx + 4]
push 0
push eax
push 0x34
call fcn.004b5290
mov esi, eax
add esp, 0xc
test esi, esi
mov edi, 3
je 0x4d595c
lea ecx, [esp + 0x84]
call fcn.004b5370
push eax
lea ecx, [esp + 0x7c]
call fcn.004b5260
push eax
lea ecx, [esp + 0x60]
call fcn.0048ce20
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
mov byte [esp + 0xd4], 1
mov dword [esp + 0x18], 1
call fcn.0048c670
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0xd4], 2
mov dword [esp + 0x18], edi
call fcn.004b7700
mov esi, eax
jmp 0x4d595e
xor esi, esi
push 0x5faa10
lea ecx, [esp + 0x20]
call fcn.0048cd50
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov dword [esp + 0xd8], edi
call fcn.004ba020
mov ebp, 0x10
cmp dword [esp + 0x38], ebp
mov dword [esp + 0x1c], 0x5f1558
jb 0x4d59a0
mov edx, dword [esp + 0x24]
push edx
call fcn.004274fc
add esp, 4
mov ebx, dword [esp + 0x14]
test bl, 2
mov esi, 0xf
mov edi, 0x5f13d0
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x1c], edi
je 0x4d59ef
and ebx, 0xfffffffd
cmp dword [esp + 0x54], ebp
jb 0x4d59de
mov eax, dword [esp + 0x40]
push eax
call fcn.004274fc
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
test bl, 1
je 0x4d5a24
cmp dword [esp + 0x74], ebp
mov dword [esp + 0x58], 0x5f1558
jb 0x4d5a0f
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004274fc
add esp, 4
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x78]
mov dword [esp + 0xd0], 0xffffffff
call fcn.004b9bf0
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 4