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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d8b5b
sub esp, 0x64
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x74]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x78]
mov esi, dword [edx]
call esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x4d8892
mov edx, dword [esp + 0x70]
mov edx, dword [edx + 0x14]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
call edx
movzx eax, byte [esp + 4]
test al, al
je 0x4d888c
mov eax, dword [0x872ce0]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x4d8842
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x80], eax
add esp, 0x64
ret
mov dword [esp], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov edx, dword [0x872ce4]
mov ebx, dword [0x872ce0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004022c0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4d8875
mov ecx, dword [esp + 0x38]
jmp 0x4d882f
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x64
ret
mov ecx, dword [esp + 0x38]
jmp 0x4d882f
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
test al, al
je 0x4d8b44
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
call fcn.004d8c90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x18]
test eax, eax
jne 0x4d8afe
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], edx
cmp eax, ecx
jge 0x4d89e8
mov ebx, dword [edx]
mov ebp, dword [edx + 4]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov esi, dword [esp + 0x68]
mov dword [esp + 0x54], esi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
lea ebx, [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004d7e30
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
mov edx, dword [0x86e000]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x4d8a4b
mov ebp, dword [esp + 0x2c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
test eax, eax
jne 0x4d89ff
mov ebx, dword [esp + 0x50]
lea edx, [ebx + 8]
mov ebx, dword [esp + 0x28]
lea eax, [ebx + 1]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], edx
cmp eax, ecx
jl 0x4d88f1
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x64
ret
mov edx, dword [0x872ce0]
cmp eax, edx
jne 0x4d8a34
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [0x872ce0]
mov ebx, dword [0x872ce4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004022c0
movzx eax, byte [esp + 0x10]
test al, al
je 0x4d8a34
jmp 0x4d89c6
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x80], eax
add esp, 0x64
ret
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10], edx
call fcn.004d87a0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
test eax, eax
jne 0x4d8a88
jmp 0x4d89c6
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 0x14]
mov ebx, dword [esp + 0x34]
mov dword [esp], ebx
call edx
movzx eax, byte [esp + 4]
test al, al
je 0x4d8af8
mov eax, dword [0x872ce0]
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jne 0x4d8ae1
mov dword [esp], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov edx, dword [0x872ce0]
mov ebx, dword [0x872ce4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.004022c0
movzx eax, byte [esp + 0x10]
test al, al
je 0x4d8ae1
jmp 0x4d89c6
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x80], eax
add esp, 0x64
ret
mov ecx, dword [esp + 0x3c]
jmp 0x4d8ae1
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x64
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x64
ret
call fcn.004486b0
jmp fcn.004d87a0