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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x28]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x78], eax
lea edx, [esp + 0x6c]
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x85]
mov dword [esp + 0x6c], ebx
push eax
mov edi, edx
mov dword [esp + 0x74], 0xffffffff
mov dword [esp + 0x78], esi
mov dword [esp + 0x80], ecx
mov byte [esp + 0x89], bl
mov dword [esp + 0x84], edx
call fcn.0049b400
mov byte [esp + 0x84], al
mov eax, esi
call fcn.004a3200
mov edi, eax
sub esp, 8
mov eax, esp
lea esi, [esp + 0x40]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.004d3970
cmp edi, ebx
jne 0x4d5a26
cmp dword [esp + 0x14], ebx
je 0x4d5cb6
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
push ecx
push edi
lea edx, [esp + 0x50]
push edx
call fcn.004d28c0
cmp dword [esp + 0x40], ebx
mov edi, eax
mov dword [esp + 0xc], edi
jne 0x4d5a4b
cmp dword [esp + 0x44], ebx
je 0x4d5ab5
mov esi, dword [esp + 0x38]
push esi
call dword [0x1005f1f8]
test eax, eax
jne 0x4d5ab5
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
mov eax, dword [esi + 0x1c]
jne 0x4d5a68
cmp eax, ebx
je 0x4d5aa0
mov edi, ecx
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x14]
push edi
call eax
push eax
call fcn.004d2bb0
mov ecx, dword [0x10075eb4]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push eax
push edi
call edx
mov edi, dword [esp + 0xc]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [0x10075eb4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push edx
mov edx, dword [esi + 8]
push edx
call eax
mov eax, dword [edi + 8]
cmp eax, ebx
mov edx, dword [edi + 0xc]
jne 0x4d5ac7
cmp edx, ebx
je 0x4d5c23
mov ecx, dword [0x10075eb4]
mov esi, dword [ecx]
push edx
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x14]
push eax
mov dword [esp + 0x48], eax
call edx
push eax
mov dword [esp + 0x3c], eax
call dword [0x1005f200]
cmp dword [esp + 0x50], ebx
jne 0x4d5af5
cmp dword [esp + 0x54], ebx
je 0x4d5b59
mov esi, dword [esp + 0x48]
push esi
call dword [0x1005f1f8]
test eax, eax
jne 0x4d5b59
mov edi, dword [esi + 0x18]
cmp edi, ebx
mov eax, dword [esi + 0x1c]
jne 0x4d5b12
cmp eax, ebx
je 0x4d5b44
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x14]
push edi
call eax
push eax
call fcn.004d2bb0
mov ecx, dword [0x10075eb4]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push eax
push edi
call edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [0x10075eb4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push edx
mov edx, dword [esi + 8]
push edx
call eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 0x10]
cmp eax, ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], ebx
jg 0x4d5b7b
jge 0x4d5c34
mov edx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
call fcn.004d6ed0
cmp dword [esp + 0x60], ebx
jne 0x4d5b9a
cmp dword [esp + 0x64], ebx
je 0x4d5bfe
mov esi, dword [esp + 0x58]
push esi
call dword [0x1005f1f8]
test eax, eax
jne 0x4d5bfe
mov edi, dword [esi + 0x18]
cmp edi, ebx
mov eax, dword [esi + 0x1c]
jne 0x4d5bb7
cmp eax, ebx
je 0x4d5be9
mov ecx, dword [0x10075eb4]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x14]
push edi
call eax
push eax
call fcn.004d2bb0
mov ecx, dword [0x10075eb4]
mov eax, dword [esp + 0x30]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push eax
push edi
call edx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [0x10075eb4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push edx
mov edx, dword [esi + 8]
push edx
call eax
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x58], ebx
jne 0x4d5c1a
cmp dword [esp + 0x14], ebx
je 0x4d5cb6
mov edi, dword [esp + 0x10]
jmp 0x4d5a26
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
jmp 0x4d5ae9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.004d6fd0
lea esi, [esp + 0x38]
call fcn.004d3550
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov edx, dword [esp + 0x44]
jne 0x4d5c60
cmp edx, ebx
je 0x4d5c6f
mov ecx, dword [0x10075eb4]
mov esi, dword [ecx]
push edx
mov edx, dword [esi + 0x18]
push eax
call edx
cmp byte [esp + 0x85], bl
je 0x4d5ca8
mov esi, dword [esp + 0x80]
mov eax, dword [esi + 8]
push ebx
push eax
call dword [0x1005f124]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x4d5ca8
push eax
call dword [0x1005f1f8]
mov edx, dword [esi + 0x10]
push ebx
push 1
push edx
call dword [0x1005f144]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esi, [esp + 0x38]
call fcn.004d3550
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov edx, dword [esp + 0x44]
jne 0x4d5ccf
cmp edx, ebx
je 0x4d5cde
mov ecx, dword [0x10075eb4]
mov esi, dword [ecx]
push edx
push eax
mov eax, dword [esi + 0x18]
call eax
cmp byte [esp + 0x85], bl
je 0x4d5d17
mov esi, dword [esp + 0x80]
mov ecx, dword [esi + 8]
push ebx
push ecx
call dword [0x1005f124]
mov edx, dword [esi + 0xc]
test edx, edx
lea eax, [esi + 0xc]
jle 0x4d5d17
push eax
call dword [0x1005f1f8]
mov eax, dword [esi + 0x10]
push ebx
push 1
push eax
call dword [0x1005f144]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8