Function at 0x40b1c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b6dd
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x43800c]
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
mov esi, ecx
xor al, al
cmp dword [esi + 0x24], 0
jbe 0x40b4a0
cmp dword [esi + 0x28], 8
lea edi, [esi + 0x14]
mov eax, edi
jb 0x40b206
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b49e
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [ebp - 0x60], 0
jb 0x40b226
mov ecx, dword [edi]
lea eax, [ebp - 0x60]
xor edx, edx
push eax
call fcn.0040be60
mov eax, dword [ebp - 0x60]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416ab1
add esp, 8
mov ebx, eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x64], ebx
jb 0x40b25a
mov edi, dword [edi]
lea eax, [ebp - 0x60]
mov edx, ebx
push eax
mov ecx, edi
call fcn.0040be60
add esp, 4
test eax, eax
je 0x40b495
mov ecx, ebx
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b292
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.00409f20
xor eax, eax
mov dword [ebp - 4], 0
push 7
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x28]
push str.LB
mov dword [ebp - 0x60], eax
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00409f20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
setae bl
mov byte [ebp - 0x59], bl
mov ecx, dword [ebp - 0x28]
nop word [eax + eax]
push dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
test bl, bl
mov dword [ebp - 0x68], edx
mov ebx, dword [ebp - 0x40]
cmovne eax, ecx
cmp dword [ebp - 0x2c], 8
push eax
lea ecx, [ebp - 0x40]
setae byte [ebp - 0x5a]
cmovae ecx, ebx
push edi
call fcn.0040b9f0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x40b426
mov edx, dword [ebp - 0x60]
xor eax, eax
mov dword [ebp - 0x58], 0
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
cmp eax, edx
jb 0x40b4bc
sub eax, edx
mov ecx, edi
sub ecx, edx
cmp eax, ecx
cmovb ecx, eax
cmp byte [ebp - 0x5a], 0
lea eax, [ebp - 0x40]
cmovne eax, ebx
push ecx
lea ecx, [ebp - 0x58]
lea eax, [eax + edx*2]
push eax
call fcn.00409f20
mov byte [ebp - 4], 2
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 8]
lea eax, [edx + 1]
cmp ecx, eax
ja 0x40b391
push ecx
mov ecx, esi
call fcn.0040ba90
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
lea eax, [ecx - 1]
dec ecx
and dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
add eax, edx
and ecx, eax
lea ebx, [ecx*4]
mov ecx, dword [esi + 4]
cmp dword [ebx + ecx], 0
jne 0x40b3c4
push 0x18
call fcn.004165e0
mov ecx, eax
add esp, 4
mov eax, dword [esi + 4]
mov dword [ebx + eax], ecx
mov ecx, dword [esi + 4]
mov ecx, dword [ebx + ecx]
lea eax, [ebp - 0x58]
push eax
call fcn.00408650
add edi, dword [ebp - 0x18]
inc dword [esi + 0x10]
mov bl, byte [ebp - 0x59]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x60], edi
cmp edx, 8
jb 0x40b2f0
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b417
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b4c1
push edx
push ecx
call fcn.004165af
add esp, 8
jmp 0x40b2e7
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40b45f
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b452
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b4c1
push ecx
push edx
call fcn.004165af
mov ebx, dword [ebp - 0x40]
add esp, 8
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40b492
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40b488
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b4c1
push ecx
push ebx
call fcn.004165af
add esp, 8
mov ebx, dword [ebp - 0x64]
push ebx
call fcn.00416aba
add esp, 4
mov al, 1
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.004165a1
mov esp, ebp
pop ebp
ret
call fcn.00408920
call fcn.00419a7c
int3