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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5340a9
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x56adc0]
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
lea eax, [ebp - 0xe4]
push eax
lea esi, [ebp - 0xc0]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xe4], 1
call fcn.00424dd0
mov edi, 8
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x422463
mov eax, dword [eax]
test eax, eax
je 0x42247b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42247b
test al, 0x10
je 0x42247b
mov al, 1
jmp 0x42247d
xor al, al
test al, al
sete bl
cmp dword [ebp - 0xac], edi
jb 0x422499
mov ecx, dword [ebp - 0xc0]
push ecx
call fcn.004f77ab
add esp, 4
test bl, bl
je 0x4224a7
mov dword [ebp - 0xe0], 1
lea edx, [ebp - 0xe4]
push edx
lea esi, [ebp - 0xc0]
mov dword [ebp - 0xe4], 1
call fcn.00424dd0
add esp, 4
lea ecx, [ebp - 0x6c]
push str.kometa.exe
push ecx
xor esi, esi
mov ecx, eax
mov dword [ebp - 4], esi
call fcn.00405ce0
add esp, 8
cmp dword [ebp - 0xac], edi
jb 0x4224f5
mov edx, dword [ebp - 0xc0]
push edx
call fcn.004f77ab
add esp, 4
mov ebx, 4
cmp dword [ebp - 0x58], edi
jb 0x4225b7
mov eax, dword [ebp - 0x6c]
cmp eax, esi
je 0x42251a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42251a
test al, 0x10
je 0x422520
or dword [ebp - 0xe0], ebx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x58], edi
jae 0x422548
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x42256a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xe4], esi
cmp dword [ebp - 0x14], esi
jne 0x422570
cmp eax, esi
jne 0x422570
or dword [ebp - 0xe0], ebx
mov dword [ebp - 4], 2
mov ebx, 7
xor edx, edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], esi
mov word [ebp - 0x50], dx
push 0x549fb4
push reloc.WS2_32.dll_accept
lea esi, [ebp - 0x50]
mov ecx, str.SoftwareNetBoxKometa_
mov byte [ebp - 4], 5
call fcn.00420020
add esp, 8
test eax, eax
je 0x4225bf
or dword [ebp - 0xe0], edi
xor esi, esi
jmp 0x4226c6
lea eax, [ebp - 0x6c]
jmp 0x42250a
lea eax, [ebp - 0xe4]
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xe4], 1
call fcn.00424dd0
add esp, 4
lea ecx, [ebp - 0xdc]
push 0x540880
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00405ce0
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x88]
push ecx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.00406035
lea edx, [ebp - 0xa4]
push str.chrome.dll
push edx
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00405ce0
add esp, 0x18
cmp dword [ebp - 0x74], edi
jb 0x422635
mov eax, dword [ebp - 0x88]
push eax
call fcn.004f77ab
add esp, 4
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], esi
mov word [ebp - 0x88], cx
cmp dword [ebp - 0xc8], edi
jb 0x42265d
mov edx, dword [ebp - 0xdc]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], esi
mov word [ebp - 0xdc], ax
cmp dword [ebp - 0x18], edi
jb 0x422683
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f77ab
add esp, 4
cmp dword [ebp - 0x90], edi
jb 0x422716
mov eax, dword [ebp - 0xa4]
cmp eax, esi
je 0x4226a9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4226a9
test al, 0x10
je 0x4226af
or dword [ebp - 0xe0], edi
cmp dword [ebp - 0x90], edi
jb 0x4226c6
mov edx, dword [ebp - 0xa4]
push edx
call fcn.004f77ab
add esp, 4
cmp dword [ebp - 0x3c], edi
jb 0x4226d7
mov eax, dword [ebp - 0x50]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], esi
mov word [ebp - 0x50], cx
cmp dword [ebp - 0x58], edi
jb 0x4226f4
mov edx, dword [ebp - 0x6c]
push edx
call fcn.004f77ab
add esp, 4
mov eax, dword [ebp - 0xe0]
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.004f6bad
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xa4]
jmp 0x422699