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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4dabbe
sub esp, 0x5c
mov edx, dword [esp + 0x60]
cmp edx, 2
jne 0x4da728
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x4da6fe
mov edx, dword [0x5dfb88]
mov ebx, dword [0x5dfb8c]
mov ebp, dword [0x5dfb90]
jmp 0x4da70a
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
cmp ebx, 4
je 0x4da71f
cmp ebx, 0x10
jne 0x4dab73
xor eax, eax
jmp 0x4dab81
mov eax, edx
mov ecx, ebx
jmp 0x4daa5d
cmp edx, 0x17
jne 0x4da9bb
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4da778
mov ecx, dword [0x5dfb88]
mov edx, dword [0x5dfb8c]
mov ebx, dword [0x5dfb90]
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov esi, dword [esp + 0x6c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
call fcn.004d7170
movzx eax, byte [esp + 0x18]
test al, al
je 0x4da78c
mov eax, dword [0x5dba00]
mov ecx, dword [0x5dba04]
mov edx, dword [0x5dba08]
jmp 0x4da798
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
cmp ecx, 4
jne 0x4da861
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
movzx ebx, byte [eax]
movzx ebp, byte [eax + 1]
movzx esi, byte [eax + 2]
movzx edi, byte [eax + 3]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov edx, dword [0x5dba10]
mov ecx, dword [0x5dba14]
cmp ecx, 0x10
jl 0x4da7ee
mov ecx, 0x10
mov dword [esp + 0x54], eax
lea eax, [esp + 0x34]
cmp edx, eax
je 0x4da834
mov byte [esp + 0x1f], bl
xchg ebp, eax
mov byte [esp + 0x1e], al
xchg ebp, eax
xchg esi, eax
mov byte [esp + 0x1d], al
xchg esi, eax
xchg edi, eax
mov byte [esp + 0x1c], al
xchg edi, eax
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0045dee0
movzx ebx, byte [esp + 0x1f]
movzx ebp, byte [esp + 0x1e]
movzx esi, byte [esp + 0x1d]
movzx edi, byte [esp + 0x1c]
mov byte [esp + 0x40], bl
xchg ebp, eax
mov byte [esp + 0x41], al
xchg ebp, eax
xchg esi, eax
mov byte [esp + 0x42], al
xchg esi, eax
xchg edi, eax
mov byte [esp + 0x43], al
xchg edi, eax
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x34]
mov ecx, 0x10
jmp 0x4da874
cmp ecx, 0x10
jne 0x4da86c
mov ebx, eax
mov ebp, ecx
jmp 0x4da874
mov ebx, eax
mov ebp, ecx
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x4da925
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
lea eax, [0x5dfea0]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
call fcn.004d5d70
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea ecx, [0x504120]
mov dword [esp], ecx
call fcn.0040b480
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jl 0x4da8d7
mov ecx, 0x10
lea edx, [eax + 8]
mov ebx, dword [esp + 0x44]
cmp ebx, edx
je 0x4da8fa
mov dword [esp + 0x4c], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045dee0
mov eax, dword [esp + 0x4c]
lea ecx, [0x53baf8]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x5c
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
call fcn.004d6620
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x4fece0]
mov dword [esp], edx
call fcn.0040b480
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x512a0f]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x605b20]
test ecx, ecx
jne 0x4da980
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
jmp 0x4da990
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045d600
mov eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x53b9b8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 8], eax
call fcn.004d6620
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x4fece0]
mov dword [esp], edx
call fcn.0040b480
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x16
lea ecx, [0x514801]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x605b20]
test ecx, ecx
jne 0x4daa22
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
jmp 0x4daa32
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045d600
mov eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x53b9b8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
test edx, edx
je 0x4daadd
mov dword [esp + 0x20], ebx
mov dword [esp + 0x48], edx
lea eax, [0x503040]
mov dword [esp], eax
call fcn.0040b480
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
cmp ecx, 4
jl 0x4daa8f
mov ecx, 4
lea edx, [eax + 4]
mov ebx, dword [esp + 0x48]
cmp ebx, edx
je 0x4daab2
mov dword [esp + 0x50], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0045dee0
mov eax, dword [esp + 0x50]
lea ecx, [0x53bae4]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x5c
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
call fcn.004d6620
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
lea edx, [0x4fece0]
mov dword [esp], edx
call fcn.0040b480
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x10
lea ecx, [0x5129ff]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x605b20]
test ecx, ecx
jne 0x4dab38
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
jmp 0x4dab48
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x58]
call fcn.0045d600
mov eax, ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x53b9b8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x5c
ret
mov eax, edx
mov ecx, ebx
xor edx, edx
xor ebx, ebx
jmp 0x4daa5d
inc eax
cmp eax, 0xa
jge 0x4dab94
jae 0x4dabb3
movzx esi, byte [edx + eax]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4dab80
jmp 0x4dab73
cmp byte [edx + 0xa], 0xff
jne 0x4dab73
cmp byte [edx + 0xb], 0xff
jne 0x4dab73
lea esi, [edx + 0xc]
mov eax, edx
mov ecx, ebx
mov edx, esi
mov ebx, 4
jmp 0x4daa5d
mov ecx, 0xa
call fcn.0045d680
nop
call fcn.0045c1c0
jmp fcn.004da6c0