Function at 0x10031fd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c5dce
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x1010739c]
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 0x1003201a
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10032354
push esi
lea ecx, [ebp - 0x28]
call fcn.10004130
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x10], 0
je 0x10032108
push 0x100d7798
lea ecx, [ebp - 0x30]
call fcn.1000aac0
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.1000aac0
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.10053590
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 0x10032094
sub ecx, dword [ebp - 0x38]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10009130
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 0x100320cc
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 0x100320ea
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 0x10032108
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1004f380
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x10032259
push 0x4b
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], eax
push 0x100d6d58
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
call fcn.10009030
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
push 3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push 0x100d6da4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.10009030
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.100043b0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 9
push str.WriteTaskWndCfgString:_key
push eax
call fcn.100064a0
add esp, 8
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x100321b4
mov ecx, dword [ebx]
test ecx, ecx
mov eax, 0x100d00c4
cmovne eax, ecx
push eax
push dword [ebp - 0x2c]
call fcn.10002f70
push str.__val
push dword [ebp - 0x2c]
call fcn.100064a0
mov ecx, dword [ebp - 0x34]
add esp, 0x10
cmp dword [ecx + 0x14], 8
jb 0x100321e2
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x100d00c4
cmovne eax, ecx
push eax
push dword [ebp - 0x2c]
call fcn.10002f70
push str._data_encryp
push dword [ebp - 0x2c]
call fcn.100064a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, 0x100d00c4
cmovae eax, dword [ebp - 0x28]
test eax, eax
cmovne ecx, eax
push ecx
push dword [ebp - 0x2c]
call fcn.10002f70
add esp, 0x18
call fcn.1004f380
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.10006970
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.10005550
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.10005550
cmp dword [edi + 0x14], 8
jb 0x10032261
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x38]
call fcn.1000aac0
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.1000aac0
mov byte [ebp - 4], 0xc
cmp dword [ebx + 0x14], 8
jb 0x1003228e
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x30]
call fcn.1000aac0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x100322a6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x34]
call fcn.1000aac0
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.1006e820
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 0x100322eb
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 0x10032309
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 0x10032327
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 0x10032343
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.100055d0
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.100512b9
mov esp, ebp
pop ebp
ret