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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4debe3
sub esp, 0x64
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4debbe
cmp eax, 1
je 0x4deb1a
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x74]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x14], esi
call fcn.004dd810
movzx eax, byte [esp + 0x18]
test al, al
je 0x4de6ed
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x4de6f9
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x78]
cmp dword [0x87b3cc], ebx
jg 0x4dea77
mov ebp, dword [0x87b3d0]
cmp ebx, ebp
jl 0x4de9e0
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.004dd940
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
lea ecx, [eax + eax*2]
shl ecx, 1
mov edx, dword [esp + 0x78]
shl edx, 1
mov dword [esp + 0x48], edx
cmp edx, ecx
jg 0x4de74c
mov edx, ecx
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.004dc450
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x14], ebp
call fcn.004de2f0
mov eax, dword [esp + 0x40]
mov ecx, eax
shl eax, 3
mov edx, ecx
shl ecx, 1
mov dword [esp + 0x4c], ecx
mov ebx, dword [esp + 0x50]
mov ebp, ebx
sub ebx, ecx
mov esi, dword [esp + 0x48]
mov edi, esi
sub esi, ecx
neg ebx
sar ebx, 0x1f
and eax, ebx
mov ebx, dword [esp + 0x60]
add eax, ebx
test esi, esi
je 0x4de7fd
mov dword [esp], eax
shl esi, 2
mov dword [esp + 4], esi
call fcn.00477900
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x78]
cmp eax, edx
jle 0x4de9ab
mov dword [esp], ecx
call fcn.004debf0
mov eax, dword [esp + 4]
mov dword [esp + 0x58], eax
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [eax + 8]
mov dword [esp + 0x3c], ebx
mov ebp, dword [esp + 0x74]
mov dword [esp], ebp
mov esi, dword [esp + 0x40]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x7c]
mov dword [esp + 8], edi
call fcn.004dc410
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x78]
sub edx, ecx
mov dword [esp + 0x30], edx
mov ebx, eax
neg eax
shl ecx, 2
sar eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x74]
add eax, ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
call fcn.004dd980
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x50]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], edi
call fcn.004dd860
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], edi
call fcn.004dd860
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
call fcn.004de680
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x60]
mov dword [esp], ebx
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x50]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
call fcn.004dd860
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call fcn.004dece0
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
call fcn.004dc410
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x64
ret
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
shl ebx, 1
mov dword [esp + 0xc], ebx
call fcn.004dc450
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x14], ebx
call fcn.004de100
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
call fcn.004dc410
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x64
ret
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
shl ebx, 1
mov dword [esp + 0xc], ebx
call fcn.004dc450
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
call fcn.004dcd00
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
call fcn.004dc410
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x64
ret
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
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 dword [esp + 0xc], 2
call fcn.004dc450
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], ebx
call fcn.004d8c60
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x60]
mov dword [edx + 4], eax
mov dword [edx], ecx
mov dword [esp], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
call fcn.004dc410
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x64
ret
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x88], eax
add esp, 0x64
ret
call fcn.00475ee0
jmp fcn.004de680