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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d8b13
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], 0x5c3620
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.0040b6a0
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 0x4d88c1
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], 0x5c3560
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
lea ebx, [esp + 0x44]
mov dword [esp + 0xc], ebx
call fcn.0040b6a0
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 0x4d8949
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 0x4d8996
mov dword [esp], 0x5bd220
mov dword [esp + 4], 0x8000
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x8000
mov dword [esp + 0x10], 0
call fcn.0043b3e0
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 0x4d8aa4
mov dword [esp + 0x20], eax
mov ecx, eax
mov eax, dword [esp + 0x7c]
cmp ecx, eax
ja 0x4d8b0c
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 0x4d8a5d
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 0x4d8a80
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 0x4d8aa4
mov ebx, dword [0x6be448]
mov dword [esp + 0x88], ebx
mov ebx, dword [0x6be44c]
mov dword [esp + 0x8c], ebx
jmp 0x4d8a7c
mov ecx, dword [esp + 0x3c]
mov ebx, dword [0x6be428]
cmp ecx, ebx
jne 0x4d8ae4
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.00402470
movzx ebx, byte [esp + 0x10]
cmp bl, 0
jne 0x4d8a7c
mov ebx, dword [esp + 0x3c]
cmp ebx, 0
je 0x4d8996
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x88], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x8c], ebx
jmp 0x4d8a7c
call fcn.00427a00
ud2
call fcn.0044ff60
jmp fcn.004d87f0