Function at 0x4022d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f272
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x6160b8]
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 ebx, ecx
mov dword [ebp - 0xd8], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xdc], eax
lea edi, [ebx + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov dword [ebp - 0xe4], edi
cmp edi, eax
je 0x402332
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00403120
add ebx, 0x64
cmp ebx, edi
je 0x402345
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.00403120
lea eax, [ebp - 0x28]
push str.52518745036756321159502268182929
push eax
call fcn.0041b546
mov esi, eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push str.35133460036657391166672769480420
push eax
call fcn.0041b546
push esi
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.00418905
mov eax, dword [ebp - 0x8c]
add esp, 0x1c
cmp eax, 8
jb 0x402397
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x4023cc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403340
call fcn.0041ce6b
test al, al
je 0x4023fb
push esp
pop esp
pop ecx
pop ebp
push esi
push eax
pop ecx
pop ecx
pop edx
push edx
push edx
pop ecx
pop ecx
pop eax
pop ebp
pop ebx
push esp
push eax
push esp
pop ebp
push ecx
pop edi
push edx
push eax
pop ecx
push edi
pop edx
pop esi
pop esi
pop edx
pop esp
pop eax
mov edi, dword [ebp - 0xe4]
call fcn.0041cde1
test al, al
je 0x402419
pop eax
pop esp
push ebx
push ebp
push ebx
push ebp
pop ebx
pop ecx
pop eax
pop ecx
pop ecx
pop ebp
push eax
pop ecx
pop esp
push ecx
push esp
push eax
push eax
pop ebp
push edi
xor eax, eax
mov dword [ebp - 0xbc], 7
push eax
push 0x60dbc0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00403020
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x60dbc0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00403020
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 8
jb 0x402479
mov edi, dword [edi]
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0041c11e
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041bff5
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x4024da
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4024bd
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0x44], 7
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00403240
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4024f3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403340
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0042c50b
push 0
call fcn.00437072
mov dword [ebp - 0xe8], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 9
mov dword [ebp - 0xe0], eax
call fcn.0041ce6b
test al, al
je 0x402562
push ebp
pop ebx
pop ecx
push edx
pop esp
pop eax
push edi
pop ebp
pop edi
push ebp
pop edx
pop eax
push edi
push ecx
push esp
pop eax
push edx
push edx
pop ebx
pop esi
push esi
pop edi
push ebx
call fcn.0041d093
test al, al
je 0x402583
push esi
pop ebx
pop esi
pop ebx
push esi
push ebx
pop ebp
pop edi
push ecx
pop esp
pop edi
pop edx
push ecx
push ecx
push eax
push esi
pop esp
push ebp
push esi
push edi
push eax
pop edi
pop ebx
push esi
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x88]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x4025c0
mov eax, dword [ecx]
jmp 0x4025c2
mov eax, ecx
mov edi, dword [ebp - 0xe4]
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.00403120
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0xd8]
mov ecx, ebx
push esi
call fcn.00401550
test al, al
je 0x402837
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe0], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.00436f9f
add eax, dword [ebx]
add esp, 4
cmp eax, dword [ebp - 0xe8]
jl 0x402642
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x4027e4
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00403120
jmp 0x4027e4
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042c50b
add esp, 8
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x40265e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041b8fd
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402d30
lea ecx, [ebp - 0x28]
call fcn.00402cf0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402e50
cmp dword [ebp - 0x30], 0
jne 0x4026ed
lea esi, [ebx + 0x64]
mov ecx, edi
mov edx, esi
call fcn.00403a10
test al, al
je 0x4026ea
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.0042c50b
add esp, 8
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x4026bd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041b8fd
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402d30
lea ecx, [ebp - 0x28]
call fcn.00402cf0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402e50
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
push eax
call fcn.00403a70
add esp, 0x10
test eax, eax
jne 0x402837
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x40273a
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00403120
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x40276b
mov eax, dword [ecx]
jmp 0x40276d
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.00403120
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0xe8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x4027b3
mov eax, dword [ecx]
jmp 0x4027b5
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x88]
push edx
push eax
call fcn.00403120
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push edi
call fcn.00402e10
push esi
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00401bb0
cmp dword [ebp - 0xa4], 0x10
lea esi, [ebp - 0xb8]
mov eax, dword [0x61f444]
cmovae esi, dword [ebp - 0xb8]
test eax, eax
jne 0x402820
push 0xdc
call fcn.004144ef
add esp, 4
mov dword [ebp - 0xec], eax
mov ecx, eax
call fcn.0040b5f0
mov dword [0x61f444], eax
push 0
push esi
sub esp, 8
mov ecx, eax
call fcn.0040bb80
mov esi, 1
jmp 0x402b49
cmp dword [ebp + 0x28], 0
jne 0x402852
mov ecx, dword [ebp - 0xdc]
push 0x60dbc0
call fcn.00402c80
jmp 0x402b47
mov esi, dword [ebp - 0xdc]
cmp dword [esi + 0x10], 0
jne 0x40290a
cmp dword [ebp + 8], 0
je 0x4028ae
add ebx, 0x1c
cmp dword [ebx + 0x14], 8
jb 0x402873
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0041c5c5
add esp, 8
mov ecx, esi
push eax
call fcn.00402d30
lea ecx, [ebp - 0x28]
call fcn.00402cf0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041c335
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x4028f2
add ebx, 4
cmp dword [ebx + 0x14], 8
jb 0x4028b9
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0041c5c5
add esp, 8
mov ecx, esi
push eax
call fcn.00402d30
lea ecx, [ebp - 0x28]
call fcn.00402cf0
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041c335
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403600
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00402cf0
call fcn.0041cd12
test al, al
je 0x402928
pop ebx
pop ebx
pop eax
pop ebp
push edx
pop esp
pop edx
pop esp
pop ecx
push eax
push esp
push esi
pop eax
pop esp
pop edx
push eax
push edi
push esp
pop ecx
pop ecx
push esi
call fcn.0041d162
test al, al
je 0x40294e
push ecx
pop eax
push ecx
push ebp
pop esp
pop eax
pop edx
push edx
pop ebp
pop eax
push esp
push edx
push ebx
pop ebp
pop ebp
push ebx
pop edi
pop ebx
push ebp
push ecx
push edi
pop ecx
push ecx
mov edi, dword [ebp - 0xe4]
cmp dword [esi + 0x14], 8
jb 0x402958
mov eax, dword [esi]
jmp 0x40295a
mov eax, esi
push eax
call fcn.00419b91
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x40296d
mov ecx, dword [edi]
jmp 0x40296f
mov ecx, edi
mov ebx, dword [ebp - 0xd8]
add ebx, 0x64
cmp dword [ebx + 0x14], 8
jb 0x402982
mov eax, dword [ebx]
jmp 0x402984
mov eax, ebx
push dword [edi + 0x10]
push ecx
push dword [ebx + 0x10]
push eax
call fcn.00403a70
mov ecx, dword [ebp - 0xd8]
add esp, 0x10
push esi
test eax, eax
je 0x4029bc
push 0
call fcn.00401f40
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x4029cc
mov ecx, dword [ebp - 0xd8]
push esi
push 1
call fcn.00401f40
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [esi + 0x14], 8
jb 0x4029d6
mov eax, dword [esi]
jmp 0x4029d8
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b21
cmp byte [ebp - 0xd1], 0
je 0x402b21
cmp dword [ebp - 0xe0], 0
lea eax, [ebp - 0xb8]
jne 0x402a07
push 2
jmp 0x402a09
push 3
cmp dword [ebp - 0xa4], 0x10
cmovae eax, dword [ebp - 0xb8]
push eax
sub esp, 8
call fcn.004039e0
mov ecx, eax
call fcn.0040bb80
cmp dword [ebp - 0x30], 0
jne 0x402ad5
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042c50b
add esp, 8
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x402a4d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041b8fd
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402d30
lea ecx, [ebp - 0x28]
call fcn.00402cf0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402e50
cmp dword [ebp - 0x30], 0
jne 0x402ad5
mov edx, ebx
mov ecx, edi
call fcn.00403a10
test al, al
je 0x402ad5
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0042c50b
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00402e40
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041b8fd
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402d30
lea ecx, [ebp - 0x28]
call fcn.00402cf0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402e50
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xec], esp
push esi
call fcn.00402e10
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x40]
mov dword [ebp - 0xe8], esp
mov ecx, esp
push eax
call fcn.00402e10
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push edi
call fcn.00402e10
push dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
mov byte [ebp - 4], 9
call fcn.00401bb0
jmp 0x402b47
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
push 1
cmovae eax, dword [ebp - 0xb8]
push eax
sub esp, 8
call fcn.004039e0
mov ecx, eax
call fcn.0040bb80
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x402b5e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x402b8d
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00402e50
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x402bc4
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x402bed
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x402c1f
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00403340
xor eax, eax
mov dword [ebp - 0xbc], 7
lea ecx, [ebp + 0xc]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00402cf0
mov eax, esi
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.004144d9
mov esp, ebp
pop ebp
ret 0x24