Function at 0x4617a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa816
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4d8368]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
jmp 0x461810
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461810
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402e10
cmp dword [ebp - 0x21c], 8
lea edi, [ebp - 0x230]
mov ebx, dword [ebp - 0x220]
cmovae edi, dword [ebp - 0x230]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x46190c
push 0x100
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.0047ce40
add esp, 0xc
mov ecx, 0x4ad92c
mov edx, 0x100
jmp 0x461880
movzx eax, word [ecx]
cmp ax, dx
jae 0x4618cb
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x360], 1
cmp ecx, 0x4ad930
jne 0x461880
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
lea esp, [esp]
movzx eax, word [ecx]
cmp ax, dx
jae 0x4618c2
cmp byte [ebp + eax - 0x360], 0
jne 0x461906
cmp ecx, edi
je 0x46190c
sub ecx, 2
jmp 0x4618b0
or ecx, 0xffffffff
lea eax, [ebx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
lea esp, [esp]
movzx esi, word [ecx]
mov edx, 2
mov eax, 0x4ad92c
lea ecx, [ecx]
cmp word [eax], si
je 0x461906
add eax, 2
sub edx, 1
jne 0x4618f0
cmp ecx, edi
je 0x46190c
sub ecx, 2
jmp 0x4618e0
sub ecx, edi
sar ecx, 1
jmp 0x46190f
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x250], 0
cmp ebx, ecx
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], 7
cmovb ecx, ebx
cmp dword [ebp - 0x21c], 8
push ecx
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x260]
push eax
call fcn.00402e10
push str.ksolite.dll
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00401760
mov edx, dword [ebp - 0x24c]
add esp, 0xc
cmp edx, 8
jb 0x4619b1
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4619a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461a92
push edx
push ecx
call fcn.00464df3
add esp, 8
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4619d9
test al, 0x10
jne 0x4619d9
mov bl, 1
jmp 0x4619db
xor bl, bl
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x461a1b
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461a11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461a97
push edx
push ecx
call fcn.00464df3
add esp, 8
mov edx, dword [ebp - 0x21c]
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp edx, 8
jb 0x461a74
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461a6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461a97
push edx
push ecx
call fcn.00464df3
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465060
mov esp, ebp
pop ebp
ret
call fcn.00485d39
call fcn.00485d39
int3