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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575548
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5e6044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41e7bd
test al, 0x10
jne 0x41e7bd
push 0
push dword [esi]
lea ecx, [ebp - 0x2c]
call fcn.0042fe89
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004303ea
mov ebx, eax
lea ecx, [ebx - 0x1000]
cmp ecx, 0x3ffff000
ja 0x41e79d
cdq
xor ecx, ecx
and edx, 3
add eax, edx
mov edx, 4
sar eax, 2
add eax, 3
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00422446
add esp, 4
lea ecx, [ebp - 0x2c]
mov edi, eax
push ebx
push edi
call fcn.004306a4
mov al, byte [edi]
xor edx, edx
cmp al, 0x4c
jne 0x41e397
cmp byte [edi + 1], 0x65
jne 0x41e397
cmp byte [edi + 2], 0x65
jne 0x41e397
mov eax, dword [ebp - 0x14]
lea esi, [edi + 8]
mov dword [eax + 0x368], 8
movzx ecx, byte [edi + ebx - 1]
movzx eax, byte [edi + ebx - 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + ebx - 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + ebx - 4]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi - 2]
mov dword [ebp + 8], ecx
movzx ecx, byte [esi - 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi - 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi - 4]
shl ecx, 8
add ecx, eax
lea eax, [ebx - 0xc]
cmp ecx, eax
jne 0x41e76a
lea ecx, [edx + 8]
lea eax, [ebx - 4]
cmp eax, ecx
jle 0x41e332
lea esi, [ebx - 4]
movzx eax, byte [ecx + edi]
inc ecx
add edx, eax
cmp ecx, esi
jl 0x41e324
lea esi, [edi + 8]
cmp edx, dword [ebp + 8]
je 0x41e766
movzx ecx, byte [edi + 6]
movzx eax, byte [edi + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
add ecx, eax
lea eax, [ebx - 0xc]
cmp ecx, eax
jne 0x41e76a
lea eax, [ebx - 0xc]
xor ecx, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
jle 0x41e37a
nop
add ecx, dword [esi]
lea esi, [esi + 4]
sub eax, 1
jne 0x41e370
cmp ecx, dword [ebp + 8]
jne 0x41e76a
mov eax, dword [ebp - 0x14]
mov bl, 1
mov dword [eax + 0x1d0], 0
jmp 0x41e76c
cmp al, 0x58
jne 0x41e6a5
cmp byte [edi + 1], 0x50
jne 0x41e6a5
cmp byte [edi + 2], 0x52
jne 0x41e6a5
cmp byte [edi + 3], 0x54
jne 0x41e6a5
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], edx
mov dword [eax + 0x368], 8
movzx esi, byte [edi + 0x33]
movzx eax, byte [edi + 0x32]
xor esi, 0x13
shl esi, 8
xor eax, 0x13
add esi, eax
movzx eax, byte [edi + 0x31]
shl esi, 8
xor eax, 0x13
add esi, eax
movzx eax, byte [edi + 0x30]
shl esi, 8
add esi, 0x13
xor esi, eax
lea eax, [esi + 0x34]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jae 0x41e76a
movzx ecx, byte [esi + edi + 0x37]
movzx eax, byte [esi + edi + 0x36]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + edi + 0x35]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + edi + 0x34]
shl ecx, 8
add ecx, eax
lea eax, [esi + 0x34]
mov dword [ebp - 0x10], ecx
mov ecx, 8
cmp eax, ecx
jbe 0x41e44e
lea edx, [esi + 0x34]
nop dword [eax + eax]
movzx eax, byte [ecx + edi]
inc ecx
add dword [ebp + 8], eax
cmp ecx, edx
jb 0x41e440
xor edx, edx
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], eax
jne 0x41e76a
mov eax, dword [ebp - 0x14]
add esi, 0x3c
mov dword [eax + 0x368], esi
movzx ecx, byte [edi + ebx - 1]
movzx eax, byte [edi + ebx - 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + ebx - 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + ebx - 4]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + edi - 2]
mov dword [ebp + 8], ecx
movzx ecx, byte [esi + edi - 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + edi - 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + edi - 4]
shl ecx, 8
add ecx, eax
mov eax, ebx
sub eax, esi
sub eax, 4
cmp ecx, eax
jne 0x41e76a
add ebx, 0xfffffffc
cmp esi, ebx
jge 0x41e4d0
movzx eax, byte [esi + edi]
inc esi
add edx, eax
cmp esi, ebx
jl 0x41e4c5
cmp edx, dword [ebp + 8]
jne 0x41e766
lea ecx, [ebp - 0x10]
call fcn.00402b20
mov ebx, dword [ebp - 0x18]
mov esi, 0x34
mov byte [ebp - 4], 1
cmp ebx, esi
jbe 0x41e509
mov al, byte [esi + edi]
xor al, 0x13
je 0x41e504
movzx eax, al
lea ecx, [ebp - 0x10]
push eax
call fcn.0041dec0
inc esi
cmp esi, ebx
jb 0x41e4f1
mov ebx, dword [ebp - 0x14]
push 0xffffffffffffffff
add ebx, 0x36c
push 0
mov ecx, ebx
call fcn.00439570
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x41e693
push str.XPRTAppM
push esi
call fcn.0054f7db
add esp, 8
test eax, eax
je 0x41e693
sub eax, esi
sar eax, 1
js 0x41e693
add eax, 8
lea ecx, [ebp - 0x10]
push eax
push str.XPRTApp
mov dword [ebp - 0x18], eax
call fcn.0041e040
test eax, eax
jns 0x41e565
mov eax, dword [esi - 0xc]
add eax, 0xfffffff8
lea ecx, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
call fcn.0041e810
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
jl 0x41e679
push 0x5934d8
push eax
call fcn.0054f7db
add esp, 8
test eax, eax
je 0x41e679
sub eax, dword [ebp + 8]
sar eax, 1
js 0x41e679
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.0041e7e0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00402030
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00402010
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x41e643
push 0x5934e0
push eax
call fcn.0054f7db
mov esi, eax
add esp, 8
test esi, esi
je 0x41e643
sub esi, dword [ebp + 8]
sar esi, 1
cmp esi, 0xffffffff
je 0x41e643
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.004038b0
push eax
push dword [ebx + 8]
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004394e7
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e633
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 1]
push eax
push 0
lea ecx, [ebp + 8]
call fcn.0041df20
jmp 0x41e5d1
lea eax, [ebp + 8]
mov ecx, ebx
push eax
push dword [ebx + 8]
call fcn.004394e7
lea ecx, [ebp + 8]
call fcn.00402010
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov bl, 1
mov byte [ebp - 4], 0
mov dword [eax + 0x1d0], 2
call fcn.00402010
jmp 0x41e76c
lea ecx, [ebp + 8]
xor bl, bl
call fcn.00402010
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00402010
jmp 0x41e76c
xor bl, bl
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00402010
jmp 0x41e76c
test al, al
je 0x41e76a
cmp byte [edi + 1], dl
je 0x41e76a
cmp byte [edi + 2], dl
je 0x41e76a
cmp byte [edi + 3], dl
je 0x41e76a
movzx ecx, byte [edi + 0x6f]
movzx eax, byte [edi + 0x6e]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x6d]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x6c]
shl ecx, 8
add ecx, eax
lea eax, [ebx - 0x74]
cmp ecx, eax
jne 0x41e76a
mov ecx, 0x74
mov dword [ebp + 8], edx
xor esi, esi
cmp ebx, ecx
jle 0x41e736
lea eax, [ebx - 0x74]
cmp eax, 2
jl 0x41e727
lea edx, [ebx - 1]
nop word [eax + eax]
movzx eax, byte [edi + ecx]
add esi, eax
movzx eax, byte [edi + ecx + 1]
add dword [ebp + 8], eax
add ecx, 2
cmp ecx, edx
jl 0x41e710
xor edx, edx
cmp ecx, ebx
jge 0x41e72f
movzx edx, byte [ecx + edi]
mov eax, dword [ebp + 8]
add eax, esi
add edx, eax
movzx ecx, byte [edi + 0x73]
movzx eax, byte [edi + 0x72]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x71]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x70]
shl ecx, 8
add ecx, eax
cmp edx, ecx
jne 0x41e76a
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1d0], 1
mov bl, 1
jmp 0x41e76c
xor bl, bl
push 4
push edi
call fcn.0054d4c7
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00430211
lea ecx, [ebp - 0x2c]
call fcn.0042ff4b
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x2c]
xor bl, bl
call fcn.0042ff4b
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4