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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d6037
sub esp, 0x64
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4d601d
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x94]
mov dword [esp + 0x14], esi
call fcn.004d3db0
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x4d5e4d
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jg 0x4d5e1c
mov edx, eax
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
cmp eax, edx
jle 0x4d5e18
mov dword [esp + 0x60], ebx
mov dword [esp], ebx
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
shl edx, 2
mov dword [esp + 8], edx
call fcn.0044c5e0
mov eax, dword [esp + 0x68]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xac], eax
add esp, 0x64
ret
mov edx, eax
jmp 0x4d5db4
lea ecx, [0x5cf940]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea ecx, [eax + 4]
mov dword [esp + 8], ecx
call fcn.004387d0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x84]
jmp 0x4d5da8
mov eax, dword [esp + 0x90]
cmp eax, 1
jne 0x4d5f61
mov eax, dword [esp + 0x8c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
call fcn.004d5b40
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
jne 0x4d5ef3
xor eax, eax
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ebp
add esp, 0x64
ret
mov ebp, dword [esp + 0x7c]
cmp ebp, 1
jl 0x4d5f15
mov esi, 1
mov edi, dword [esp + 0x74]
test esi, esi
jbe 0x4d6016
mov dword [edi], eax
mov eax, esi
mov esi, edi
jmp 0x4d5ec5
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], ebx
lea eax, [0x5cf940]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 5
call fcn.004387d0
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
jmp 0x4d5f05
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 ecx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x2c], eax
call fcn.004d6190
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xac], esi
add esp, 0x64
ret
call fcn.00425810
ud2
lea eax, [0x5cff80]
mov dword [esp], eax
lea eax, [0x63c4d0]
mov dword [esp + 4], eax
call fcn.00426660
ud2
call fcn.0044a470
jmp fcn.004d5d20