Function at 0x439910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560b10
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x5c9c4c]
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.00506bc0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004b58f0
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 0x439990
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00412730
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov bl, 1
call fcn.00506bc0
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 0x57e10c
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 0x439e94
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x439ef0
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.0040e220
test al, al
jne 0x439a82
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439a60
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.0040d860
mov byte [ebp - 4], 2
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x439efa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x45c], eax
push 0x57aa4c
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 3
call fcn.0040e220
test al, al
jne 0x439acd
push 0
push 0x57aa4c
lea ecx, [ebp - 0x45c]
call fcn.0040d860
mov byte [ebp - 4], 4
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x439f04
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.0040e220
test al, al
jne 0x439b18
push 0xa
push str.LoginLevel
lea ecx, [ebp - 0x458]
call fcn.0040d860
mov byte [ebp - 4], 6
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x439f0e
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.0040e220
test al, al
jne 0x439b63
push 5
push str.Login
lea ecx, [ebp - 0x454]
call fcn.0040d860
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.004c8160
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 0x439bc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00412730
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 0x439c00
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 0x439c21
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 0x439c42
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 0x439c63
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 0x439c84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x428], 0
je 0x439e54
cmp dword [ebp - 0x43c], 8
lea edi, [ebp - 0x450]
cmovae edi, dword [ebp - 0x450]
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x439f18
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.0040e220
test al, al
jne 0x439cff
test edi, edi
jne 0x439cde
xor ecx, ecx
jmp 0x439cf2
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439ce3
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x468]
call fcn.0040d860
cmp dword [ebp - 0x424], 8
lea edi, [ebp - 0x438]
mov byte [ebp - 4], 0x11
cmovae edi, dword [ebp - 0x438]
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x439f22
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.0040e220
test al, al
jne 0x439d71
test edi, edi
jne 0x439d50
xor ecx, ecx
jmp 0x439d64
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439d55
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x464]
call fcn.0040d860
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.004aac70
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 0x439da0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00412730
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 0x439ddd
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 0x439dfe
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 0x439e1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x428], 0
je 0x439e54
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.00534444
add esp, 4
test eax, eax
jle 0x439e54
lea ecx, [ebp - 0x438]
call fcn.00410990
jmp 0x439e96
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x439e94
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x439e8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439f2c
push edx
push ecx
call fcn.004a952e
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x439ed2
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x439ec8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439f31
push edx
push ecx
call fcn.004a952e
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.004a9518
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
call fcn.00523fc4
call fcn.00523fc4
int3