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

Disassembly:
sub esp, 0x150
mov eax, dword [0x6b66bc]
xor eax, esp
mov dword [esp + 0x14c], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x154]
push esi
mov esi, dword [ecx + 4]
mov edx, esi
neg edx
sbb edx, edx
lea eax, [esi - 1]
test eax, edx
jle 0x495d1f
test esi, esi
je 0x495d18
mov ecx, dword [ecx]
jmp 0x495d21
mov ecx, 0x60f5ec
jmp 0x495d21
xor ecx, ecx
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
push ebp
xor ebp, ebp
mov dword [esp + 0x10], ecx
push edi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x13], 0
nop dword [eax]
test ecx, ecx
je 0x496253
movzx eax, word [ecx]
cmp eax, 0xd
je 0x495d55
cmp eax, 0xa
jne 0x495d5e
add ecx, 2
mov dword [esp + 0x14], ecx
jmp 0x495d48
push 0
lea eax, [esp + 0x60]
mov dword [esp + 0x54], 0
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x64], 0
push eax
mov dword [esp + 0x6c], 0
call fcn.004a7970
mov ecx, dword [esp + 0x24]
add esp, 0x10
test ecx, ecx
je 0x495da5
cmp word [ecx], 0
jne 0x495daa
mov byte [esp + 0x13], 1
cmp dword [esp + 0x54], 0
je 0x495f4f
mov esi, dword [esp + 0x50]
cmp word [esi], 0
je 0x495e0f
nop
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495dc5
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 - 2]
push eax
call ebx
add esp, 4
test eax, eax
je 0x495e0b
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495df0
sub eax, edx
xor ecx, ecx
sar eax, 1
mov word [esi + eax*2 - 2], cx
cmp word [esi], cx
jne 0x495dc0
mov ecx, dword [esp + 0x14]
movzx edi, word [esi]
cmp edi, 0x5b
jne 0x495f63
mov edx, esi
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x495e20
sub edx, ebx
sar edx, 1
cmp word [esi + edx*2 - 2], 0x5d
jne 0x495f5d
add esi, 2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495e43
sub ecx, edx
xor eax, eax
sar ecx, 1
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov word [esi + ecx*2 - 2], ax
test esi, esi
je 0x495ec5
cmp word [esi], ax
je 0x495ec5
mov ecx, esi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495e77
sub ecx, edi
sar ecx, 1
lea edi, [ecx + 1]
test edi, edi
jle 0x495e9f
push edi
lea ecx, [esp + 0x20]
call fcn.0040ce40
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [edi + edx]
mov dword [esp + 0x20], eax
cmp eax, ebx
jle 0x495eb4
push edx
lea ecx, [esp + 0x20]
call fcn.0040cde0
lea eax, [edi + edi]
push eax
push esi
push dword [esp + 0x24]
call fcn.004263f0
add esp, 0xc
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x64]
mov ecx, ebx
push eax
call fcn.00420df0
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x495eed
imul ebp, eax, 0x8c
add ebp, dword [ebx]
jmp 0x495eef
xor ebp, ebp
lea eax, [ebp + 0xc]
neg ebp
sbb ebp, ebp
and ebp, eax
mov dword [esp + 0x18], ebp
jne 0x495f3d
push 0x78
lea eax, [esp + 0xe8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esp + 0xe4]
call fcn.004165f0
push eax
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00485200
mov ebp, eax
lea ecx, [esp + 0xe4]
mov dword [esp + 0x18], ebp
call fcn.004173e0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x496229
push ecx
jmp 0x496221
movzx edi, word [0x60f5ec]
mov esi, 0x60f5ec
jmp 0x495f63
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
test ebp, ebp
je 0x49622d
test di, di
je 0x49622d
cmp di, 0x3b
je 0x49622d
push 0x629328
push esi
call sub.VCRUNTIME140.dll_wcsstr
mov edi, eax
add esp, 8
test edi, edi
je 0x496229
xor eax, eax
mov word [edi], ax
add edi, 2
movzx eax, word [esi]
test ax, ax
je 0x49600e
mov ecx, eax
push ecx
call ebx
add esp, 4
test eax, eax
je 0x495fc2
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x495fa8
jmp 0x49600e
cmp word [esi], 0
je 0x49600e
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495fd0
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 - 2]
push eax
call ebx
add esp, 4
test eax, eax
je 0x49600e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495ff3
sub ecx, edx
xor eax, eax
sar ecx, 1
mov word [esi + ecx*2 - 2], ax
cmp word [esi], ax
jne 0x495fc8
movzx eax, word [edi]
test ax, ax
je 0x49607e
mov ecx, eax
push ecx
call ebx
add esp, 4
test eax, eax
je 0x496032
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x496018
jmp 0x49607e
cmp word [edi], 0
je 0x49607e
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496040
sub ecx, edx
sar ecx, 1
movzx eax, word [edi + ecx*2 - 2]
push eax
call ebx
add esp, 4
test eax, eax
je 0x49607e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496063
sub ecx, edx
xor eax, eax
sar ecx, 1
mov word [edi + ecx*2 - 2], ax
cmp word [edi], ax
jne 0x496038
movzx eax, word [edi]
cmp eax, 0x22
jne 0x496125
push 0
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push edi
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.004ae550
add esp, 0xc
lea ecx, [esp + 0xac]
cmp dword [esp + 0x48], 0
mov eax, 0x60f5ec
cmovne eax, dword [esp + 0x44]
push eax
call fcn.004871d0
push 1
push esi
lea ecx, [esp + 0xd4]
call fcn.004bf450
lea eax, [esp + 0xac]
mov ecx, ebp
push eax
lea eax, [esp + 0xd0]
push eax
call fcn.004852a0
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x496108
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0xac]
test eax, eax
je 0x49611c
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x44]
jmp 0x49621c
xor edx, edx
mov dword [esp + 0x28], 0
xor ebp, ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebp
test ax, ax
je 0x496195
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x496143
sub ecx, ebx
sar ecx, 1
lea ebx, [ecx + 1]
test ebx, ebx
jle 0x49616b
push ebx
lea ecx, [esp + 0x2c]
call fcn.0040ce40
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
lea eax, [ebx + edx]
mov dword [esp + 0x2c], eax
cmp eax, ebp
jle 0x496180
push edx
lea ecx, [esp + 0x2c]
call fcn.0040cde0
lea eax, [ebx + ebx]
push eax
push edi
push dword [esp + 0x30]
call fcn.004263f0
mov edx, dword [esp + 0x38]
add esp, 0xc
test edx, edx
mov dword [esp + 0x34], 0
lea ecx, [esp + 0xc8]
mov dword [esp + 0x38], 0
mov eax, 0x60f5ec
mov dword [esp + 0x3c], 0
cmovne eax, dword [esp + 0x28]
push ecx
push eax
call fcn.0048ea90
add esp, 8
test eax, eax
je 0x4961e0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0048e090
add esp, 8
push 1
push esi
lea ecx, [esp + 0xe0]
call fcn.004bf450
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xdc]
mov ecx, ebp
push eax
call fcn.004852a0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x496218
push eax
call fcn.0043f8f0
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x496229
push eax
call fcn.0043f8f0
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x50]
test esi, esi
je 0x496242
push esi
call fcn.0043f8f0
mov ecx, dword [esp + 0x18]
add esp, 4
cmp byte [esp + 0x13], 0
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
je 0x495d40
mov edi, dword [esp + 0x40]
mov ecx, edi
call fcn.00498f70
mov eax, dword [edi + 4]
mov ecx, edi
sub eax, dword [edi + 0x2c]
push 1
push eax
call fcn.0041b460
cmp dword [edi + 0x20], 0
lea eax, [edi + 0xc]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
jge 0x4962ae
call fcn.00609320
nop
int3
cmp dword [eax + 0x14], 0
je 0x4962bd
lea ecx, [esp + 0x64]
call fcn.00410370
movups xmm2, xmmword [esp + 0x64]
mov dword [esp + 0xac], edi
movq xmm0, qword [esp + 0x74]
movups xmmword [esp + 0xb0], xmm2
mov dword [esp + 0x80], edi
movups xmm1, xmmword [esp + 0xac]
mov dword [esp + 0xa4], edi
movq qword [esp + 0xc0], xmm0
movq xmm0, qword [esp + 0xbc]
mov eax, dword [esp + 0xc4]
psrldq xmm2, 8
movd ecx, xmm2
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xc0]
movq qword [esp + 0x74], xmm0
movups xmm0, xmmword [esp + 0x74]
pop edi
pop ebp
movups xmmword [esp + 0x7c], xmm1
mov word [esp + 0xa0], 0
movups xmmword [esp + 0x8c], xmm0
pop ebx
cmp eax, dword [ecx + 0x14]
jge 0x4963cc
mov ecx, dword [esp + 0x8c]
nop
mov eax, dword [esp + 0x78]
imul esi, ecx, 0x8c
mov eax, dword [eax]
add esi, eax
lea ecx, [esi + 0xc]
call fcn.00498ed0
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0xc]
sub eax, dword [esi + 0x38]
push 1
push eax
call fcn.0041ae10
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x7c]
not eax
and dword [esp + 0x88], eax
call fcn.00410370
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x8c]
cmp ecx, dword [eax + 0x14]
jl 0x496350
cmp byte [esp + 0x9c], 0
je 0x4963cc
cmp byte [esp + 0x9d], 0
je 0x4963cc
mov ecx, dword [esp + 0x98]
push 1
mov eax, dword [ecx + 4]
sub eax, dword [ecx + 0x2c]
push eax
call fcn.0041b460
mov ecx, dword [esp + 0x150]
pop esi
xor ecx, esp
call fcn.005f4480
add esp, 0x150
ret 4