Function at 0x42b480
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x602904
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
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.0047ac70
mov dword [esp + 0x2e8], ebx
mov edx, dword [esp + 0x28]
mov eax, dword [edx - 0xc]
cmp eax, ebx
jle 0x42b4fd
lea ecx, [eax - 1]
cmp ecx, ebx
jl 0x42b539
cmp ecx, eax
jg 0x42b539
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x42b4fd
push 0x5c
call fcn.0040af90
push 0xc
push str.unuseime.txt
lea eax, [esp + 0x30]
push eax
call fcn.0040aee0
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 0x42b543
call fcn.0040f010
jmp 0x42b549
push 0x80070057
call fcn.00403650
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 0x42bac7
mov eax, dword [esp + 0x20]
push ebx
push 4
push 2
lea esi, [esp + 0x68]
call fcn.0050dcc0
cmp eax, ebx
jl 0x42bac7
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.0050e160
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
mov dword [esp + 0x30], 1
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x2e8], 3
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x2e8], 4
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x2e8], 5
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
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.0050e200
test eax, eax
je 0x42ba27
jmp 0x42b650
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], ebx
jle 0x42ba0f
push 9
push edi
call fcn.005d33c4
add esp, 8
cmp eax, ebx
je 0x42ba0f
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x42ba0f
lea ecx, [esp + 0x14]
push ecx
xor ecx, ecx
lea edx, [esp + 0x44]
call fcn.00409f60
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 0x42b6f7
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x42b6e6
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x42b6e6
call fcn.0040a210
mov dword [esp + 0x3c], eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x42b6d9
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 0x42b6f3
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x28]
call fcn.004037a0
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 0x42b71f
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 0x42ba0f
cmp esi, eax
jge 0x42ba0f
lea ecx, [edi + esi*2]
push 9
push ecx
call fcn.005d33c4
add esp, 8
test eax, eax
je 0x42ba0f
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42ba0f
lea edx, [esp + 0x14]
push edx
sub eax, esi
mov ecx, esi
lea edx, [esp + 0x3c]
call fcn.00409f60
lea edi, [esp + 0x2c]
mov byte [esp + 0x2e8], 8
call fcn.0040ab90
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 0x42b7a3
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.00409f40
lea edi, [esp + 0x18]
mov byte [esp + 0x2e8], 9
call fcn.0040ab90
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 0x42b7ec
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.0040a210
add eax, 0x10
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x1c]
mov byte [esp + 0x2e8], 0xa
call fcn.00431780
mov ebx, dword [esp + 0x1c]
cmp dword [ebx - 0xc], 0
jl 0x42b85d
push str..ime
push ebx
call fcn.005d2e73
add esp, 8
test eax, eax
je 0x42b85d
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x42b85d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b85d
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 0x42ba03
mov edi, dword [0x67ba4c]
lea ecx, [esp + 0x7c]
push ecx
lea eax, [esp + 0x1c]
mov esi, 0x67ba48
call fcn.00431c30
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x42b885
cmp eax, 0x67ba48
je 0x42b88a
call fcn.005d29f1
cmp dword [esi + 4], edi
jne 0x42b9bf
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
mov edx, dword [0x677600]
add eax, 0x10
mov dword [esp + 0xc0], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
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.0040ab90
mov ecx, dword [esp + 0x24]
xor esi, esi
push ecx
mov dword [esp + 0x88], esi
call fcn.005d3c34
lea edx, [esp + 0xc8]
add esp, 4
push edx
lea ecx, [esp + 0xcc]
mov dword [esp + 0xcc], eax
call fcn.0042a8e0
add esp, 4
test eax, eax
jne 0x42b98a
push 0x1fc
lea eax, [esp + 0xda]
push esi
push eax
mov word [esp + 0xe0], si
call fcn.005da970
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.00403760
mov eax, dword [esp + 0xc4]
cmp dword [eax - 0xc], esi
jne 0x42b98a
lea esi, [esp + 0x84]
call fcn.0042af20
jmp 0x42b840
lea ecx, [esp + 0x84]
push ecx
push ecx
push 0x67ba48
lea ecx, [esp + 0x24]
call fcn.004317e0
add esp, 4
mov ebx, eax
call fcn.00429850
lea esi, [esp + 0x84]
mov byte [esp + 0x2e8], 0xa
call fcn.0042af20
push 0x67ba48
lea ecx, [esp + 0x1c]
call fcn.004317e0
push eax
push ecx
push 0x67ba54
lea ecx, [esp + 0x24]
call fcn.004317e0
add esp, 4
mov ebx, eax
call fcn.00429850
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 0x42ba0f
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.0050e200
xor ebx, ebx
test eax, eax
jne 0x42b650
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 0x42ba4f
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 0x42ba77
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 0x42ba9f
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 0x42bac7
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 0x42badc
push eax
call edi
mov dword [esp + 0x20], ebx
lea esi, [esp + 0x5c]
call fcn.0050df50
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0050df50
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x42bb05
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 0x42bb30
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.005d28b3
mov esp, ebp
pop ebp
ret