Function at 0x10031c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf09e
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x100fe39c]
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
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x40], eax
mov eax, edi
mov dword [ebp - 0x34], esi
jb 0x10031cda
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10032014
push esi
lea ecx, [ebp - 0x28]
call fcn.10003f90
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x10], 0
je 0x10031dc8
push 0x100cf5f0
lea ecx, [ebp - 0x30]
call fcn.1000a900
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1000a900
mov byte [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.10051800
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x38], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031d54
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10008f70
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031d8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031daa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031dc8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1004e090
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x10031f19
push 0x4b
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], eax
push 0x100cecf0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.10008e70
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
push 3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push 0x100cecec
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.10008e70
mov byte [ebp - 4], 8
lea eax, [ebp - 0x70]
push 0xea
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x108]
call fcn.10004210
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 9
push str.WriteTaskWndCfgString:_key
push eax
call fcn.10006300
add esp, 8
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x10031e74
mov ecx, dword [ebx]
test ecx, ecx
mov eax, 0x100c80b8
cmovne eax, ecx
push eax
push dword [ebp - 0x2c]
call fcn.10002da0
push str.__val
push dword [ebp - 0x2c]
call fcn.10006300
mov ecx, dword [ebp - 0x34]
add esp, 0x10
cmp dword [ecx + 0x14], 8
jb 0x10031ea2
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x100c80b8
cmovne eax, ecx
push eax
push dword [ebp - 0x2c]
call fcn.10002da0
push str._data_encryp
push dword [ebp - 0x2c]
call fcn.10006300
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, 0x100c80b8
cmovae eax, dword [ebp - 0x28]
test eax, eax
cmovne ecx, eax
push ecx
push dword [ebp - 0x2c]
call fcn.10002da0
add esp, 0x18
call fcn.1004e090
push dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x108]
call fcn.100067d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.100053b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.100053b0
cmp dword [edi + 0x14], 8
jb 0x10031f21
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x38]
call fcn.1000a900
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1000a900
mov byte [ebp - 4], 0xc
cmp dword [ebx + 0x14], 8
jb 0x10031f4e
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x30]
call fcn.1000a900
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x10031f66
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.1000a900
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10066c60
add esp, 0x10
mov edi, eax
mov byte [ebp - 4], 0xd
mov ecx, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10031fab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031fc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10031fe7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10032003
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005430
mov eax, edi
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.1004f51c
mov esp, ebp
pop ebp
ret