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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, dword [esi + 0xc0]
cmp ecx, ebx
je 0x4d99cf
lea eax, [esp + 0x30]
push eax
call fcn.004df0c0
mov edx, dword [esi]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x218]
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x21c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
sub edx, ebp
add edx, ebx
sub eax, edi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x34]
add eax, edx
mov edx, dword [esi]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x224]
mov ecx, dword [eax]
pop edi
pop esi
pop ebp
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x30]
pop ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
add esp, 0x28
ret 4
cmp dword [esi + 0xb8], ebx
je 0x4d9a1b
mov ecx, esi
call fcn.004dba90
mov edx, dword [esi + 0x40]
xor edi, edi
xor ebp, ebp
cmp edx, ebx
je 0x4d9b30
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xb8]
cmp eax, ebx
je 0x4d9a0f
mov ecx, dword [eax + 0x70]
mov eax, dword [eax + 0x98]
cmp ecx, edi
jle 0x4d9a09
mov edi, ecx
cmp eax, ebp
jle 0x4d9a0f
mov ebp, eax
mov edx, dword [edx + 0xc]
cmp edx, ebx
jne 0x4d99ed
jmp 0x4d9b30
cmp dword [esi + 0x38], ebx
je 0x4d9b9f
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x4d9b28
mov edi, dword [ebx + 8]
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0xdc]
test al, al
jne 0x4d9b1d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa0]
test al, al
je 0x4d9b1d
test edi, edi
je 0x4d9aa7
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov ebp, eax
mov eax, 0x8cba10
test eax, eax
je 0x4d9aa7
cmp ebp, eax
je 0x4d9b1d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4d9a90
push eax
call fcn.004196e0
test al, al
jne 0x4d9b1d
mov ebp, dword [ebp + 0x10]
test ebp, ebp
je 0x4d9aa7
push 0x8cba10
mov ecx, ebp
call fcn.004196e0
test al, al
jne 0x4d9b1d
mov edx, dword [edi]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x210]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
cmp ecx, eax
jne 0x4d9ace
mov dword [esp + 0x10], 0
cmp dword [esp + 0x14], eax
jne 0x4d9adc
mov dword [esp + 0x14], 0
mov edx, dword [edi]
lea eax, [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x218]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add eax, edx
cmp eax, ecx
jle 0x4d9b06
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jle 0x4d9b1d
mov dword [esp + 0x20], eax
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x4d9a37
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x21c]
mov eax, dword [esp + 0x28]
mov edx, dword [esi]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x218]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub eax, ebx
mov ebx, dword [esp + 0x18]
sub ecx, ebx
xor edx, edx
test eax, eax
setl dl
dec edx
and edx, eax
xor eax, eax
add edi, edx
test ecx, ecx
setl al
dec eax
and eax, ecx
add ebp, eax
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
pop edi
mov dword [eax + 4], ebp
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [edx + 0x80]
mov eax, dword [esp + 0x20]
or edi, 0xffffffff
cmp eax, edi
je 0x4d9bbf
cmp dword [esp + 0x24], edi
jne 0x4d9bfb
mov edx, dword [esi]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x218]
cmp dword [esp + 0x20], edi
jne 0x4d9be1
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x24], edi
jne 0x4d9bef
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call dword [edx + 0x78]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
add esp, 0x28
ret 4