Function at 0x439b10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560db0
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.00506df0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004b5b20
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 0x439b90
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00412940
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov bl, 1
call fcn.00506df0
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 0x43a094
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x43a0f0
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 0x439c82
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439c60
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 0x43a0fa
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 0x439ccd
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 0x43a104
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 0x439d18
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 0x43a10e
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 0x439d63
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.004c8390
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 0x439dc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00412940
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 0x439e00
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 0x439e21
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 0x439e42
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 0x439e63
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 0x439e84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x428], 0
je 0x43a054
cmp dword [ebp - 0x43c], 8
lea edi, [ebp - 0x450]
cmovae edi, dword [ebp - 0x450]
call fcn.0040cd20
mov ecx, eax
test ecx, ecx
je 0x43a118
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 0x439eff
test edi, edi
jne 0x439ede
xor ecx, ecx
jmp 0x439ef2
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439ee3
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 0x43a122
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 0x439f71
test edi, edi
jne 0x439f50
xor ecx, ecx
jmp 0x439f64
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439f55
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.004aaea0
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 0x439fa0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00412940
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 0x439fdd
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 0x439ffe
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 0x43a01d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x428], 0
je 0x43a054
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.00534674
add esp, 4
test eax, eax
jle 0x43a054
lea ecx, [ebp - 0x438]
call fcn.004109e0
jmp 0x43a096
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x43a094
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43a08a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43a12c
push edx
push ecx
call fcn.004a975e
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x43a0d2
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43a0c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43a131
push edx
push ecx
call fcn.004a975e
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.004a9748
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.005241f3
call fcn.005241f3
int3