Function at 0x403160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e83f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x473018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x84], esi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x88], edi
cmp dword [edi + 0x14], 8
jb 0x4031ac
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40346b
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str..bat
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00404580
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
test ecx, ecx
je 0x4032b5
mov eax, dword [edi + 0x10]
cmp ecx, eax
ja 0x4032b5
sub eax, ecx
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x28]
cmovae eax, edx
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x28]
cmovae ecx, edx
cmp dword [edi + 0x14], 8
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x80], ecx
jb 0x40322a
mov ecx, dword [edi]
lea esi, [ecx + edx*2]
jmp 0x40322f
lea esi, [edi + edx*2]
mov ecx, edi
mov edx, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x80]
lea edx, [ecx + edx*2]
mov ecx, esi
sub ecx, edx
mov dword [ebp - 0x7c], edx
xor ecx, eax
test ecx, 0xfffffffe
je 0x403256
mov esi, dword [ebp - 0x84]
xor al, al
mov edx, dword [ebp - 0x28]
jmp 0x4032b7
cmp edx, esi
je 0x40328f
sub dword [ebp - 0x80], edx
nop dword [eax]
movzx eax, word [edx]
push eax
call fcn.0043cb6a
mov ecx, dword [ebp - 0x80]
mov edi, eax
mov eax, dword [ebp - 0x7c]
movzx ecx, word [eax + ecx]
push ecx
call fcn.0043cb6a
add esp, 8
cmp edi, eax
jne 0x4032a2
mov edx, dword [ebp - 0x7c]
add edx, 2
mov dword [ebp - 0x7c], edx
cmp edx, esi
jne 0x403260
mov edi, dword [ebp - 0x88]
mov al, 1
mov esi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x28]
jmp 0x4032b7
mov edi, dword [ebp - 0x88]
xor al, al
mov esi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x28]
jmp 0x4032b7
xor al, al
mov byte [ebp - 0x71], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4032fb
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4032ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403488
push ecx
push edx
call fcn.004332cf
mov al, byte [ebp - 0x71]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
test al, al
je 0x403436
push edi
lea ecx, [ebp - 0x58]
call fcn.00403fa0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x58]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test al, al
sete cl
mov byte [ebp - 0x84], cl
test al, al
je 0x403356
lea ecx, [ebp - 0x70]
call fcn.00403650
mov byte [ebp - 4], 2
mov ecx, 1
jmp 0x40338e
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 3
mov ecx, 2
push dword [ebp - 0x84]
mov dword [ebp - 0x78], ecx
lea edx, [esi + 4]
push eax
lea eax, [esi + 0x1c]
push 0
push eax
lea ecx, [ebp - 0x58]
call fcn.00412120
add esp, 0x10
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x78]
test al, 2
je 0x403411
and eax, 0xfffffffd
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x4033fd
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4033f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40348d
push ecx
push edx
call fcn.004332cf
mov eax, dword [ebp - 0x78]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 4], 1
test al, 1
je 0x40342a
and eax, 0xfffffffe
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
call fcn.004040c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
jmp 0x403466
lea ecx, [ebp - 0x70]
call fcn.00403650
mov dword [ebp - 4], 4
lea edx, [esi + 4]
push 0
push eax
push dword [esi + 0x34]
lea eax, [esi + 0x1c]
mov ecx, edi
push eax
call fcn.00412120
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004040c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432e76
mov esp, ebp
pop ebp
ret 4
call fcn.0043c8de
call fcn.0043c8de
int3