Function at 0x1003a160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013bed8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1019bc84]
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.10038240
add esp, 4
cmp dword [ebp - 0x30], 0
mov bl, 1
mov dword [ebp - 4], 0
je 0x1003a3b2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1003a1b6
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003a3b2
cmp dword [esi + 0x14], 8
jb 0x1003a1cd
mov esi, dword [esi]
push 0x101539d4
push 0x101570c8
push str.Login
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.1003adb0
add esp, 0x14
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
je 0x1003a37c
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x1003a407
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.1000df70
test al, al
jne 0x1003a259
test esi, esi
jne 0x1003a235
xor ecx, ecx
jmp 0x1003a24f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003a240
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.1000d5b0
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov byte [ebp - 4], 3
cmovae esi, dword [ebp - 0x28]
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x1003a411
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.1000df70
test al, al
jne 0x1003a2b9
test esi, esi
jne 0x1003a29b
xor ecx, ecx
jmp 0x1003a2af
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003a2a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.1000d5b0
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.1009f560
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 0x1003a2e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100125f0
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 0x1003a31a
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 0x1003a338
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 0x1003a354
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
je 0x1003a37c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.101101f1
add esp, 4
test eax, eax
jle 0x1003a37c
lea ecx, [ebp - 0x28]
call fcn.100106a0
jmp 0x1003a3b4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1003a3b2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a3a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a41b
push edx
push ecx
call fcn.1009de6e
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1003a3ea
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a3e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a420
push edx
push ecx
call fcn.1009de6e
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.1009de58
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000aab0
push 0x80004005
call fcn.1000aab0
call fcn.100ffdb3
call fcn.100ffdb3
int3