Function at 0x42f3a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536120
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x594624]
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
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00495270
xor eax, eax
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f420
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00432180
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov bl, 1
call fcn.004daa30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x54fc64
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42f924
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x42f980
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x460]
call fcn.0041db10
test al, al
jne 0x42f512
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f4f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.0040e3c0
mov byte [ebp - 4], 2
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x42f98a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x45c], eax
push 0x54ca30
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 3
call fcn.0041db10
test al, al
jne 0x42f55d
push 0
push 0x54ca30
lea ecx, [ebp - 0x45c]
call fcn.0040e3c0
mov byte [ebp - 4], 4
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x42f994
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x458], eax
push str.LoginLevel
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 5
call fcn.0041db10
test al, al
jne 0x42f5a8
push 0xa
push str.LoginLevel
lea ecx, [ebp - 0x458]
call fcn.0040e3c0
mov byte [ebp - 4], 6
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x42f99e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x454], eax
push str.Login
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 7
call fcn.0041db10
test al, al
jne 0x42f5f3
push 5
push str.Login
lea ecx, [ebp - 0x454]
call fcn.0040e3c0
lea eax, [ebp - 0x460]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.004adae0
add esp, 0x14
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov byte [ebp - 4], 9
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f650
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00432180
mov edx, dword [ebp - 0x46c]
or esi, 0xffffffff
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f690
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x454]
mov eax, esi
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f6b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x458]
mov eax, esi
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f6d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x45c]
mov eax, esi
mov byte [ebp - 4], 0xe
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f6f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x460]
mov eax, esi
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f714
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x428], 0
je 0x42f8e4
cmp dword [ebp - 0x43c], 8
lea edi, [ebp - 0x450]
cmovae edi, dword [ebp - 0x450]
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x42f9a8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x468], eax
push edi
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x10
call fcn.0041db10
test al, al
jne 0x42f78f
test edi, edi
jne 0x42f76e
xor ecx, ecx
jmp 0x42f782
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f773
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x468]
call fcn.0040e3c0
cmp dword [ebp - 0x424], 8
lea edi, [ebp - 0x438]
mov byte [ebp - 4], 0x11
cmovae edi, dword [ebp - 0x438]
call fcn.00412c30
mov ecx, eax
test ecx, ecx
je 0x42f9b2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x464], eax
push edi
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 0x12
call fcn.0041db10
test al, al
jne 0x42f801
test edi, edi
jne 0x42f7e0
xor ecx, ecx
jmp 0x42f7f4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f7e5
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x464]
call fcn.0040e3c0
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.0049d670
add esp, 0xc
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0x14
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f830
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00432180
mov edx, dword [ebp - 0x470]
mov eax, esi
mov byte [ebp - 4], 0x13
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f86d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x464]
mov eax, esi
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42f88e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x468]
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42f8ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x428], 0
je 0x42f8e4
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.00507fb7
add esp, 4
test eax, eax
jle 0x42f8e4
lea ecx, [ebp - 0x438]
call fcn.00421a70
jmp 0x42f926
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x42f924
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f91a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f9bc
push edx
push ecx
call fcn.004939be
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x42f962
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42f958
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f9c1
push edx
push ecx
call fcn.004939be
add esp, 8
mov al, bl
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.00493dce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
push 0x80004005
call fcn.0040b4c0
call fcn.004e61b8
call fcn.004e61b8
int3