Function at 0x42bef0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a2944
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
xor ebx, ebx
lea edi, [esp + 0x28]
mov dword [esp + 0x30], ebx
call fcn.00474ab0
mov dword [esp + 0x2e8], ebx
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x42bf6d
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x42bfa9
cmp ecx, eax
jg 0x42bfa9
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x42bf6d
push 0x5c
call fcn.00404400
push 0xc
push str.unuseime.txt
lea eax, [esp + 0x30]
push eax
call fcn.00403fc0
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x28]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42bfb3
call fcn.004129d0
jmp 0x42bfb9
push 0x80070057
call fcn.00404550
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
cmp eax, ebx
mov byte [esp + 0x2e8], 2
jl 0x42c527
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x5c]
call fcn.004d0300
cmp eax, ebx
jl 0x42c527
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
lea edi, [esp + 0x44]
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], edx
call fcn.004d0530
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
mov dword [esp + 0x30], 1
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x2e8], 3
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x2e8], 4
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x2e8], 5
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
mov eax, edi
mov byte [esp + 0x2ec], 6
call fcn.004d05c0
test eax, eax
je 0x42c487
nop
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], ebx
jle 0x42c46f
push 9
push edi
call fcn.00578331
add esp, 8
cmp eax, ebx
je 0x42c46f
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x42c46f
lea ecx, [esp + 0x14]
push ecx
xor ecx, ecx
lea edx, [esp + 0x44]
call fcn.00403eb0
mov byte [esp + 0x2e8], 7
mov ecx, dword [eax]
mov ebx, dword [esp + 0x24]
lea eax, [ecx - 0x10]
add ebx, 0xfffffff0
cmp eax, ebx
je 0x42c157
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x42c146
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x42c146
call fcn.00403ce0
mov dword [esp + 0x3c], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x42c139
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x3c]
add ecx, 0x10
mov dword [esp + 0x24], ecx
jmp 0x42c153
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x28]
call fcn.00404050
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x2e8], 6
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c17f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 1
mov eax, dword [edi - 0xc]
js 0x42c46f
cmp esi, eax
jge 0x42c46f
lea ecx, [edi + esi*2]
push 9
push ecx
call fcn.00578331
add esp, 8
test eax, eax
je 0x42c46f
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42c46f
lea edx, [esp + 0x14]
push edx
sub eax, esi
mov ecx, esi
lea edx, [esp + 0x3c]
call fcn.00403eb0
lea edi, [esp + 0x2c]
mov byte [esp + 0x2e8], 8
call fcn.004035d0
mov byte [esp + 0x2e8], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c203
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebx + 1]
lea esi, [esp + 0x34]
lea edx, [esp + 0x14]
call fcn.00403540
lea edi, [esp + 0x18]
mov byte [esp + 0x2e8], 9
call fcn.004035d0
mov byte [esp + 0x2e8], 6
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c24c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
lea eax, [esi - 0x10]
call fcn.00403ce0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x1c]
mov byte [esp + 0x2e8], 0xa
call fcn.00431730
mov ebx, dword [esp + 0x1c]
cmp dword [ebx - 0xc], 0
jl 0x42c2bd
push str..ime
push ebx
call fcn.0057880c
add esp, 8
test eax, eax
je 0x42c2bd
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x42c2bd
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c2bd
lea eax, [ebx - 0x10]
mov byte [esp + 0x2e8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x42c463
mov edi, dword [0x5fff6c]
lea ecx, [esp + 0x7c]
push ecx
lea eax, [esp + 0x1c]
mov esi, 0x5fff68
call fcn.00431be0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x42c2e5
cmp eax, 0x5fff68
je 0x42c2ea
call fcn.00578ff3
cmp dword [esi + 4], edi
jne 0x42c41f
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
mov edx, dword [0x5fcd20]
add eax, 0x10
mov dword [esp + 0xc0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0xc4], eax
mov byte [esp + 0x2e8], 0xb
lea eax, [esp + 0x2c]
lea edi, [esp + 0xc0]
mov dword [esp + 0xd0], 0
call fcn.004035d0
mov ecx, dword [esp + 0x24]
xor esi, esi
push ecx
mov dword [esp + 0x88], esi
call fcn.005796ae
lea edx, [esp + 0xc8]
add esp, 4
push edx
lea ecx, [esp + 0xcc]
mov dword [esp + 0xcc], eax
call fcn.0042b350
add esp, 4
test eax, eax
jne 0x42c3ea
push 0x1fc
lea eax, [esp + 0xda]
push esi
push eax
mov word [esp + 0xe0], si
call fcn.00580260
mov edx, dword [esp + 0xd4]
add esp, 0xc
push 0xff
lea ecx, [esp + 0xd8]
push ecx
push edx
call sub.IMM32.dll_ImmGetDescriptionW
lea edx, [esp + 0xd4]
lea edi, [esp + 0xc4]
call fcn.004040f0
mov eax, dword [esp + 0xc4]
cmp dword [eax - 0xc], esi
jne 0x42c3ea
lea esi, [esp + 0x84]
call fcn.0042b990
jmp 0x42c2a0
lea ecx, [esp + 0x84]
push ecx
push ecx
push 0x5fff68
lea ecx, [esp + 0x24]
call fcn.00431790
add esp, 4
mov ebx, eax
call fcn.0042a940
lea esi, [esp + 0x84]
mov byte [esp + 0x2e8], 0xa
call fcn.0042b990
push 0x5fff68
lea ecx, [esp + 0x1c]
call fcn.00431790
push eax
push ecx
push 0x5fff74
lea ecx, [esp + 0x24]
call fcn.00431790
add esp, 4
mov ebx, eax
call fcn.0042a940
mov byte [esp + 0x2e8], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c46f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x48]
call fcn.004d05c0
xor ebx, ebx
test eax, eax
jne 0x42c0b0
mov byte [esp + 0x2e8], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c4af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2e8], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c4d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2e8], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c4ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2e8], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42c53c
push eax
call edi
mov dword [esp + 0x20], ebx
lea esi, [esp + 0x5c]
call fcn.004d04e0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004d04e0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x42c565
push eax
call edi
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c590
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret