Function at 0x4132a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d2eb8
push eax
mov dword fs:[0], esp
sub esp, 0x18
cmp byte [esp + 0x2c], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
push edi
mov esi, ecx
jne 0x413416
test esi, esi
je 0x413416
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413416
push 0x4ddadc
lea ebx, [esp + 0x18]
call fcn.00402bd0
push esi
lea ebx, [esp + 0x14]
mov dword [esp + 0x34], 0
call fcn.00402bd0
push 0x4ddaa0
lea ebx, [esp + 0x20]
mov byte [esp + 0x34], 1
call fcn.00402bd0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x3c], 2
call fcn.004907a0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x3c], 3
call fcn.004907a0
mov byte [esp + 0x30], 5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413363
push eax
mov edi, eax
call ebp
test eax, eax
jne 0x413363
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x30], 6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413382
push eax
mov edi, eax
call ebp
test eax, eax
jne 0x413382
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x30], 7
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41339f
push edi
call ebp
test eax, eax
jne 0x41339f
push edi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x30], 8
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4133bc
push edi
call ebp
test eax, eax
jne 0x4133bc
push edi
call fcn.0049e96f
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4133c9
add eax, 8
jne 0x4133ce
mov eax, 0x4d9064
push 4
push 0x4d9784
push eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x3c]
je 0x413411
call fcn.00401970
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
call fcn.00401970
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push edx
push edi
mov edx, esi
call fcn.00413010
mov byte [esp + 0x3c], al
test al, al
jne 0x4135a2
push 0x4ddae8
lea ebx, [esp + 0x44]
call fcn.00402bd0
mov dword [esp + 0x30], 9
test esi, esi
je 0x413560
cmp word [esi], 0
je 0x413560
push 0x4ddb40
lea ebx, [esp + 0x48]
call fcn.00402bd0
push esi
lea ebx, [esp + 0x3c]
mov byte [esp + 0x34], 0xa
call fcn.00402bd0
push 0x4ddb38
lea ebx, [esp + 0x28]
mov byte [esp + 0x34], 0xb
call fcn.00402bd0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x3c], 0xc
call fcn.004907a0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x14]
push edx
mov bl, 0xd
push eax
mov byte [esp + 0x3c], bl
call fcn.004907a0
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x38], 0xe
call fcn.00490640
mov byte [esp + 0x30], bl
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4134e8
push eax
mov esi, eax
call ebp
test eax, eax
jne 0x4134e8
push esi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x30], 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x413507
push eax
mov esi, eax
call ebp
test eax, eax
jne 0x413507
push esi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x30], 0xb
mov eax, dword [esp + 0x24]
test eax, eax
je 0x413526
push eax
mov esi, eax
call ebp
test eax, eax
jne 0x413526
push esi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x30], 0xa
mov esi, dword [esp + 0x38]
test esi, esi
je 0x413543
push esi
call ebp
test eax, eax
jne 0x413543
push esi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x30], 9
mov esi, dword [esp + 0x44]
test esi, esi
je 0x413560
push esi
call ebp
test eax, eax
jne 0x413560
push esi
call fcn.0049e96f
add esp, 4
mov esi, dword [esp + 0x40]
test esi, esi
je 0x41356f
lea eax, [esi + 8]
test eax, eax
jne 0x413574
mov eax, 0x4d9064
mov ecx, dword [edi + 0x18]
push 0
push 0x4d9784
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x4135a2
push esi
call ebp
test eax, eax
jne 0x4135a2
push esi
call fcn.0049e96f
add esp, 4
mov ecx, dword [esp + 0x28]
mov al, byte [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0x10