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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4c26
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4e437c]
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 - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
jmp 0x46bb70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bb70
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402f10
cmp dword [ebp - 0x234], 8
lea edi, [ebp - 0x248]
mov ebx, dword [ebp - 0x238]
cmovae edi, dword [ebp - 0x248]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x46bc6c
push 0x100
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.00486380
add esp, 0xc
mov ecx, 0x4b792c
mov edx, 0x100
jmp 0x46bbe0
movzx eax, word [ecx]
cmp ax, dx
jae 0x46bc2b
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x360], 1
cmp ecx, 0x4b7930
jne 0x46bbe0
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 0x46bc22
cmp byte [ebp + eax - 0x360], 0
jne 0x46bc66
cmp ecx, edi
je 0x46bc6c
sub ecx, 2
jmp 0x46bc10
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, 0x4b792c
lea ecx, [ecx]
cmp word [eax], si
je 0x46bc66
add eax, 2
sub edx, 1
jne 0x46bc50
cmp ecx, edi
je 0x46bc6c
sub ecx, 2
jmp 0x46bc40
sub ecx, edi
sar ecx, 1
jmp 0x46bc6f
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x250], 0
cmp ebx, ecx
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x24c], 7
cmovb ecx, ebx
cmp dword [ebp - 0x234], 8
push ecx
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x260]
push eax
call fcn.00402f10
push 0xc
push str.ksolite.dll
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
call fcn.00402d90
mov edx, eax
mov ecx, dword [edx]
mov dword [ebp - 0x230], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x228], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x224], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x220], ecx
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov edx, dword [ebp - 0x24c]
cmp edx, 8
jb 0x46bd52
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bd48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46be33
push edx
push ecx
call fcn.0046e36f
add esp, 8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46bd7a
test al, 0x10
jne 0x46bd7a
mov bl, 1
jmp 0x46bd7c
xor bl, bl
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x46bdbc
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46bdb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46be38
push edx
push ecx
call fcn.0046e36f
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x46be15
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46be0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46be38
push edx
push ecx
call fcn.0046e36f
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.0046e5dc
mov esp, ebp
pop ebp
ret
call fcn.0048f279
call fcn.0048f279
int3