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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4debc5
sub esp, 0x48
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 8], edx
call fcn.004dffd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ecx, ecx
jne 0x4deba8
mov dword [esp + 0x2c], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x68]
mov byte [esp + 0xc], bl
call fcn.004e0240
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
jne 0x4deb6a
nop
mov eax, dword [esp + 0x60]
cmp eax, 2
je 0x4de8e8
cmp eax, 3
setne cl
jmp 0x4de8ea
xor ecx, ecx
mov byte [esp + 0x2b], cl
lea eax, [0x5073c0]
mov dword [esp], eax
call fcn.0040b480
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x60]
cmp ecx, 1
sete dl
mov byte [eax + 0x12d], dl
movzx edx, byte [esp + 0x2b]
mov byte [eax + 0x12e], dl
mov edx, dword [esp + 0x5c]
mov dword [eax + 0x134], edx
mov dword [eax + 0x138], ecx
mov edx, dword [esp + 0x58]
mov dword [eax + 0x144], edx
mov edx, dword [0x605b20]
test edx, edx
jne 0x4de952
mov edx, dword [esp + 0x54]
mov dword [eax + 0x140], edx
jmp 0x4de965
lea edi, [eax + 0x140]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.0045d600
mov eax, edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x4deac0
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x4deac4
cmp ecx, 1
je 0x4de998
cmp ecx, 2
je 0x4dea36
cmp ecx, 5
jne 0x4deac4
call fcn.004dddc0
mov eax, dword [esp]
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
call fcn.004df570
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x4dea11
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004d49c0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x48
ret
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xc], ecx
call fcn.004dfa30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x4dea9b
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004d49c0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x48
ret
mov ebx, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ecx
call fcn.004debd0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x4deb45
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004d49c0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x48
ret
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
mov edx, dword [0x5db48c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
call eax
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], eax
add esp, 0x48
ret
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebx
add esp, 0x48
ret
call fcn.0045c1c0
jmp fcn.004de850