Function at 0x42c5c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a2884
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 + 0x20]
mov dword [esp + 0x30], ebx
call fcn.00474ab0
mov dword [esp + 0x2e8], ebx
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x42c63d
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x42c679
cmp ecx, eax
jg 0x42c679
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x42c63d
push 0x5c
call fcn.00404400
push 0xc
push str.inuseime.txt
lea eax, [esp + 0x28]
push eax
call fcn.00403fc0
mov dword [esp + 0x2c], ebx
mov ecx, dword [esp + 0x20]
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 0x42c683
call fcn.004129d0
jmp 0x42c689
push 0x80070057
call fcn.00404550
mov dword [esp + 0x2c], 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 0x42cc03
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x5c]
call fcn.004d0300
cmp eax, ebx
jl 0x42cc03
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 + 0x28], eax
lea eax, [esp + 0x14]
push eax
mov eax, edi
mov byte [esp + 0x2ec], 6
call fcn.004d05c0
test eax, eax
je 0x42cb63
nop
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], ebx
jle 0x42cb4b
push 9
push edi
call fcn.00578331
add esp, 8
cmp eax, ebx
je 0x42cb4b
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x42cb4b
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 0x42c827
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x42c816
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x42c816
call fcn.00403ce0
mov dword [esp + 0x3c], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x42c809
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 0x42c823
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 0x42c84f
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 0x42cb4b
cmp esi, eax
jge 0x42cb4b
lea ecx, [edi + esi*2]
push 9
push ecx
call fcn.00578331
add esp, 8
test eax, eax
je 0x42cb4b
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42cb4b
lea edx, [esp + 0x14]
push edx
sub eax, esi
mov ecx, esi
lea edx, [esp + 0x3c]
call fcn.00403eb0
lea edi, [esp + 0x28]
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 0x42c8d3
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 0x42c91c
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 0x42c99d
push str..ime
push ebx
call fcn.0057880c
add esp, 8
test eax, eax
je 0x42c99d
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x42c99d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c99d
add ebx, 0xfffffff0
mov byte [esp + 0x2e8], 6
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cb4b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x42cb4b
mov edi, dword [0x5fff6c]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x1c]
mov esi, 0x5fff68
call fcn.00431be0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x42c9c5
cmp eax, 0x5fff68
je 0x42c9ca
call fcn.00578ff3
cmp dword [esi + 4], edi
jne 0x42cb12
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 + 0x28]
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 0x42cadf
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 0x42cadf
lea esi, [esp + 0x84]
call fcn.0042b990
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 0x42cb3f
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]
call fcn.0042b990
mov ebx, dword [esp + 0x1c]
jmp 0x42cb27
push 0x5fff68
lea ecx, [esp + 0x1c]
call fcn.00431790
mov dword [eax + 0x4c], 1
lea eax, [ebx - 0x10]
mov byte [esp + 0x2e8], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42cb4b
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 0x42c780
mov byte [esp + 0x2e8], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42cb8b
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 0x42cbb3
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 0x42cbdb
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 0x42cc03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x5c]
call fcn.004d04e0
or edi, 0xffffffff
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004d04e0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x42cc2f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x42cc53
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