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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f553
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x55f2b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0x94]
mov eax, dword [0x55fe9c]
add eax, 0xc8
push eax
call fcn.00414920
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x84]
test ecx, ecx
jne 0x41ecc9
mov byte [ebp - 0x9d], cl
jmp 0x41f563
mov edi, SysReAllocString
mov eax, edi
sub eax, ecx
cmp eax, 6
jb 0x41f5bd
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
push 6
cmovae eax, dword [ebp - 0x94]
push str.Setup
push ecx
push eax
push ecx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x4c]
call fcn.0041ba50
mov byte [ebp - 4], 1
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f50e
test al, 0x10
je 0x41f50e
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x34]
movups xmmword [ebp - 0x34], xmm0
call fcn.0041b530
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], 3
mov ecx, eax
push dword [esi + 4]
push eax
call fcn.00417e00
mov dword [esi + 4], esi
lea eax, [ebp - 0x2c]
mov dword [esi], esi
mov ecx, eax
mov dword [esi + 8], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push dword [esi + 4]
push eax
call fcn.00417db0
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3c]
sub edi, ecx
cmp edi, 0xa
jb 0x41f5c2
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push 0xa
cmovae eax, dword [ebp - 0x4c]
push str._setup.ini
push ecx
push eax
push ecx
push dword [ebp - 0xa4]
lea ecx, [ebp - 0x7c]
call fcn.0041ba50
mov eax, 3
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x7c]
push eax
call fcn.0045d060
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x41ee15
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ee0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5c7
push edx
push ecx
call fcn.004d06e3
add esp, 8
push 6
xor eax, eax
mov dword [ebp - 0xec], 0
push str.Common
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xe8], 7
mov word [ebp - 0xfc], ax
call fcn.00414320
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00460a90
mov esi, eax
mov dword [ebp - 0xbc], 0
xor eax, eax
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xe4]
push 9
push 0x53f74c
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
call fcn.00414320
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xe4]
mov ecx, esi
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00460fb0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xd0]
cmp edx, 8
jb 0x41ef04
mov ecx, dword [ebp - 0xe4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41eefa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5cc
push edx
push ecx
call fcn.004d06e3
add esp, 8
xor eax, eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xb8]
cmp edx, 8
jb 0x41ef65
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ef5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5cc
push edx
push ecx
call fcn.004d06e3
add esp, 8
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xe8]
cmp edx, 8
jb 0x41efa9
mov ecx, dword [ebp - 0xfc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ef9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5cc
push edx
push ecx
call fcn.004d06e3
add esp, 8
xor eax, eax
mov dword [ebp - 0xec], 0
mov word [ebp - 0xfc], ax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0xe8], 7
mov ecx, dword [eax]
mov eax, dword [0x56556c]
cmp eax, dword [ecx + 4]
jle 0x41f010
push 0x56556c
call fcn.004d0b9a
add esp, 4
cmp dword [0x56556c], 0xffffffff
jne 0x41f010
mov byte [ebp - 4], 0xb
call fcn.004cd784
push 0x56556c
mov dword [0x565570], eax
mov byte [ebp - 4], 0xa
call fcn.004d0b50
add esp, 4
push dword [0x565570]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x64]
push 0xffffffffffffffff
cmovae ecx, dword [ebp - 0x64]
mov edx, 0x53f744
push 0xffffffffffffffff
push dword [ebp - 0x54]
call fcn.0041b1d0
add esp, 0x10
test eax, eax
je 0x41f045
mov byte [ebp - 0x9d], 1
jmp 0x41f43c
lea edi, [ebp - 0x20]
mov dword [ebp - 0x20], str.jrog2
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], str.program
mov eax, edi
mov dword [ebp - 0x18], str.setup
mov dword [ebp - 0x14], 0x53f7fc
cmp eax, ecx
je 0x41f435
push 0x15
xor eax, eax
mov dword [ebp - 0x11c], 0
push 0x53f680
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
call fcn.00414320
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x34]
call fcn.00460a90
mov esi, eax
mov dword [ebp - 0xbc], 0
xor eax, eax
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
mov byte [ebp - 4], 0xd
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x104], eax
mov word [ebp - 0x114], ax
mov dword [ebp - 0x100], 7
lea eax, [ecx + 2]
mov dword [ebp - 0xa4], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f100
sub ecx, dword [ebp - 0xa4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x114]
call fcn.00414320
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00460fb0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x100]
cmp edx, 8
jb 0x41f181
mov ecx, dword [ebp - 0x114]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f177
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5c7
push edx
push ecx
call fcn.004d06e3
add esp, 8
xor eax, eax
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 7
mov word [ebp - 0x114], ax
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0xb8]
cmp edx, 8
jb 0x41f1e2
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f1d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5c7
push edx
push ecx
call fcn.004d06e3
add esp, 8
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x41f226
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f21c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5c7
push edx
push ecx
call fcn.004d06e3
add esp, 8
xor eax, eax
mov dword [ebp - 0x11c], 0
push 1
push 0x53f6ac
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
call fcn.00414320
mov byte [ebp - 4], 0x14
sub esp, 0x18
mov eax, dword [ebp - 0xa8]
xorps xmm0, xmm0
or eax, 4
movq qword [ebp - 0xb4], xmm0
mov dword [ebp - 0xa8], eax
mov ecx, esp
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xac], 0
push eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
call fcn.00414920
push 0
push 0
push 1
lea edx, [ebp - 0xb4]
lea ecx, [ebp - 0x7c]
call fcn.00417370
mov ecx, dword [ebp - 0xb0]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0xb4]
add esp, 0x24
and dword [ebp - 0xa8], 0xfffffffb
imul ecx
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xb4]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0xa4], esi
test ecx, ecx
je 0x41f39c
mov edx, dword [ebp - 0xb0]
push ecx
call fcn.00416eb0
mov ecx, dword [ebp - 0xac]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0xb4]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x41f36e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5c7
push ecx
push esi
call fcn.004d06e3
mov esi, dword [ebp - 0xa4]
add esp, 8
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0xb8]
cmp edx, 8
jb 0x41f3e0
mov ecx, dword [ebp - 0xcc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f3d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5c7
push edx
push ecx
call fcn.004d06e3
add esp, 8
cmp esi, 2
jb 0x41f4c8
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x41f427
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f41d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5d1
push edx
push ecx
call fcn.004d06e3
add esp, 8
add edi, 4
lea eax, [ebp - 0x10]
cmp edi, eax
jne 0x41f071
mov byte [ebp - 0x9d], 0
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x41f476
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f46c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5d6
push edx
push ecx
call fcn.004d06e3
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], 7
push dword [eax + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, eax
call fcn.00417db0
push 0x40
push dword [ebp - 0x2c]
call fcn.004d06e3
mov eax, dword [ebp - 0x34]
add esp, 8
push dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
mov ecx, eax
call fcn.00417e00
push 0x38
push dword [ebp - 0x34]
call fcn.004d06e3
add esp, 8
jmp 0x41f515
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x41f502
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f4f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5d1
push edx
push ecx
call fcn.004d06e3
add esp, 8
mov byte [ebp - 0x9d], 1
jmp 0x41f43c
mov byte [ebp - 0x9d], 0
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x41f54f
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f545
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5d6
push edx
push ecx
call fcn.004d06e3
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x41f59c
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f592
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f5d6
push edx
push ecx
call fcn.004d06e3
add esp, 8
mov al, byte [ebp - 0x9d]
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.004d0675
mov esp, ebp
pop ebp
ret
call fcn.00414310
call fcn.00414310
call fcn.004ebf29
call fcn.004ebf29
call fcn.004ebf29
call fcn.004ebf29
int3