Function at 0x439740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5700c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00437820
add esp, 4
cmp dword [ebp - 0x30], 0
mov bl, 1
mov dword [ebp - 4], 0
je 0x439992
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x439796
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439992
cmp dword [esi + 0x14], 8
jb 0x4397ad
mov esi, dword [esi]
push 0x58ac10
push 0x58e260
push str.Login
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0043a390
add esp, 0x14
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x43995c
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
call fcn.0040cf00
mov ecx, eax
test ecx, ecx
je 0x4399e7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040e400
test al, al
jne 0x439839
test esi, esi
jne 0x439815
xor ecx, ecx
jmp 0x43982f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439820
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.0040da40
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 3
cmovae esi, dword [ebp - 0x28]
call fcn.0040cf00
mov ecx, eax
test ecx, ecx
je 0x4399f1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0040e400
test al, al
jne 0x439899
test esi, esi
jne 0x43987b
xor ecx, ecx
jmp 0x43988f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x439880
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.0040da40
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004b21d0
add esp, 0xc
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 6
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4398c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00412a70
mov edx, dword [ebp - 0x4c]
or esi, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4398fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov eax, esi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x439918
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x439934
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
je 0x43995c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00543b41
add esp, 4
test eax, eax
jle 0x43995c
lea ecx, [ebp - 0x28]
call fcn.00410b20
jmp 0x439994
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x439992
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x439988
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4399fb
push edx
push ecx
call fcn.004b0a8e
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4399ca
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4399c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439a00
push edx
push ecx
call fcn.004b0a8e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040af40
push 0x80004005
call fcn.0040af40
call fcn.00533703
call fcn.00533703
int3