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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d8d73
sub esp, 0x60
xor ebx, ebx
xor ebx, ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp], 0x5c38c0
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x4c]
mov dword [esp + 0xc], ebx
call fcn.0040b900
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
movzx ebx, byte [esp + 0x10]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x24], esi
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x28], ebp
cmp bl, 0
je 0x4d8b21
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], ebp
mov ebx, dword [esi + 0x14]
call ebx
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
add esp, 0x60
ret
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp], 0x5c3800
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea ebx, [esp + 0x44]
mov dword [esp + 0xc], ebx
call fcn.0040b900
movzx ebx, byte [esp + 0x10]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
cmp bl, 0
je 0x4d8ba9
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp], ecx
mov ebx, dword [edx + 0x14]
call ebx
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
add esp, 0x60
ret
mov ebx, dword [esp + 0x74]
cmp ebx, 0
jne 0x4d8bf6
mov dword [esp], 0x5bd4c0
mov dword [esp + 4], 0x8000
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x8000
mov dword [esp + 0x10], 0
call fcn.0043b640
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov ebx, dword [esp + 0x6c]
mov ebx, dword [ebx + 0x14]
call ebx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
cmp eax, 0
jle 0x4d8d04
mov dword [esp + 0x20], eax
mov ecx, eax
mov eax, dword [esp + 0x7c]
cmp ecx, eax
ja 0x4d8d6c
mov edx, dword [esp + 0x74]
mov dword [esp + 0x54], edx
mov dword [esp + 4], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebx, dword [esp + 0x64]
mov ebx, dword [ebx + 0x14]
call ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
cmp ecx, 0
jle 0x4d8cbd
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov eax, ecx
cdq
mov ebp, eax
mov ebx, edx
mov eax, edi
mov edx, esi
add eax, ebp
adc edx, ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov ebx, dword [esp + 0x34]
cmp ebx, 0
je 0x4d8ce0
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x8c], ebx
add esp, 0x60
ret
mov ebx, dword [esp + 0x20]
cmp ebx, ecx
je 0x4d8d04
mov ebx, dword [0x6be448]
mov dword [esp + 0x88], ebx
mov ebx, dword [0x6be44c]
mov dword [esp + 0x8c], ebx
jmp 0x4d8cdc
mov ecx, dword [esp + 0x3c]
mov ebx, dword [0x6be428]
cmp ecx, ebx
jne 0x4d8d44
mov ebp, dword [esp + 0x3c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 4], ebp
mov ebp, dword [0x6be428]
mov dword [esp + 8], ebp
mov ebp, dword [0x6be42c]
mov dword [esp + 0xc], ebp
call fcn.004026d0
movzx ebx, byte [esp + 0x10]
cmp bl, 0
jne 0x4d8cdc
mov ebx, dword [esp + 0x3c]
cmp ebx, 0
je 0x4d8bf6
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x8c], ebx
jmp 0x4d8cdc
call fcn.00427c60
ud2
call fcn.004501c0
jmp fcn.004d8a50