Function at 0x10051680
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f4e42
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x10283a3c]
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
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x4c4], 0
push 1
push eax
call fcn.10041850
add esp, 8
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x4c0], ax
lea ecx, [ebp - 0x4c0]
push 0xd
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
push eax
mov dword [ebp - 0x44], 0x6f0043
mov dword [ebp - 0x40], 0x70006d
mov dword [ebp - 0x3c], 0x740075
mov dword [ebp - 0x38], 0x720065
mov dword [ebp - 0x34], 0x2e005a
mov dword [ebp - 0x30], 0x650073
mov dword [ebp - 0x2c], 0x74
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 7
call fcn.10027e50
cmp dword [ebp - 0x4ac], 8
lea edi, [ebp - 0x4c0]
mov esi, dword [ebp - 0x4c8]
cmovae edi, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], 1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x460]
push 0x210
push 0
push eax
call fcn.101be270
add esp, 0xc
test esi, esi
je 0x100517a8
xor eax, eax
cmp ax, word [esi]
je 0x100517a8
test edi, edi
je 0x100517ae
cmp ax, word [edi]
je 0x100517ae
push edi
push esi
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, eax
jmp 0x100517ae
lea esi, [ebp - 0x460]
push esi
lea ecx, [ebp - 0x4d8]
call fcn.100281c0
mov dword [ebp - 0x4c4], 3
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 7
lea esi, [ecx + 2]
mov word [ebp - 0x490], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10051800
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x490]
call fcn.10027e50
mov byte [ebp - 4], 3
mov esi, 3
mov dword [ebp - 0x4c4], esi
and esi, 0xfffffffd
mov dword [ebp - 0x4c4], esi
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x4d8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051858
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
and esi, 0xfffffffe
mov dword [ebp - 0x4c4], esi
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x4ac]
cmp edx, 8
jb 0x100518a5
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1005189b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10052048
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x4b0], 0
cmp dword [ebp - 0x47c], 8
mov word [ebp - 0x4c0], ax
lea eax, [ebp - 0x490]
cmovae eax, dword [ebp - 0x490]
push eax
mov dword [ebp - 0x4ac], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100518f4
mov byte [ebp - 4], al
lea ecx, [ebp - 0x490]
call fcn.10020960
jmp 0x1005201f
cmp dword [ebp - 0x47c], 8
lea edi, [ebp - 0x490]
cmovae edi, dword [ebp - 0x490]
mov byte [ebp - 4], 8
xor eax, eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
push 7
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push eax
mov dword [ebp - 0x24], 0x630072
mov dword [ebp - 0x20], 0x66005f
mov dword [ebp - 0x1c], 0x61006c
mov dword [ebp - 0x18], 0x67
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.10027e50
or esi, 4
mov dword [ebp - 0x4c4], esi
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae esi, dword [ebp - 0x40]
mov byte [ebp - 4], 9
xor eax, eax
mov word [ebp - 0x478], ax
lea ecx, [ebp - 0x478]
push 5
lea eax, [ebp - 0x20]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
push eax
mov dword [ebp - 0x20], 0x6f004c
mov dword [ebp - 0x1c], 0x690067
mov dword [ebp - 0x18], 0x6e
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 7
call fcn.10027e50
mov eax, dword [ebp - 0x4c4]
or eax, 8
mov dword [ebp - 0x4c4], eax
lea eax, [ebp - 0x478]
cmp dword [ebp - 0x464], 8
push edi
cmovae eax, dword [ebp - 0x478]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [ebp - 0x4c4]
mov edi, eax
and esi, 0xfffffff7
mov dword [ebp - 0x4c4], esi
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x464]
cmp edx, 8
jb 0x10051a4a
mov ecx, dword [ebp - 0x478]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10051a40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005204d
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x468], 0
and esi, 0xfffffffb
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
mov dword [ebp - 0x4c4], esi
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10051aae
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10051aa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10052052
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edi, 1
je 0x10051ed1
push 0x20a
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.101be270
add esp, 0xc
lea edi, [ebp - 0x490]
cmp dword [ebp - 0x47c], 8
cmovae edi, dword [ebp - 0x490]
mov byte [ebp - 4], 0xa
xor eax, eax
mov dword [ebp - 0x468], eax
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x464], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x468], eax
mov word [ebp - 0x478], ax
lea eax, [ebp - 0x28]
push 0xa
push eax
mov dword [ebp - 0x28], 0x6f004c
mov dword [ebp - 0x24], 0x690067
mov dword [ebp - 0x20], 0x4c006e
mov dword [ebp - 0x1c], 0x760065
mov dword [ebp - 0x18], 0x6c0065
mov dword [ebp - 0x464], 7
call fcn.10027e50
or esi, 0x10
mov dword [ebp - 0x4c4], esi
lea esi, [ebp - 0x478]
cmp dword [ebp - 0x464], 8
cmovae esi, dword [ebp - 0x478]
mov byte [ebp - 4], 0xb
xor eax, eax
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
push 5
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push eax
mov dword [ebp - 0x20], 0x6f004c
mov dword [ebp - 0x1c], 0x690067
mov dword [ebp - 0x18], 0x6e
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.10027e50
mov eax, dword [ebp - 0x4c4]
lea ecx, [ebp - 0x250]
push edi
or eax, 0x20
push 0x104
mov dword [ebp - 0x4c4], eax
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push 0x1021dffc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x4c4]
and esi, 0xffffffdf
mov dword [ebp - 0x4c4], esi
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10051c3c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10051c32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10052057
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
and esi, 0xffffffef
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x4c4], esi
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x464]
cmp edx, 8
jb 0x10051c9d
mov ecx, dword [ebp - 0x478]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10051c93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005205c
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x468], 0
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x464], 7
mov word [ebp - 0x478], ax
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10051ce6
sub ecx, edx
lea eax, [ebp - 0x250]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4a8]
call fcn.10027e50
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x498], 0
jne 0x10051d38
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4a8]
call fcn.10020960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x490]
call fcn.10020960
jmp 0x1005201f
lea eax, [ebp - 0x4d4]
push eax
call fcn.1002a3e0
add esp, 4
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0x4a8]
cmp dword [ebp - 0x494], 8
cmovae esi, dword [ebp - 0x4a8]
call fcn.1002dc00
mov ecx, eax
test ecx, ecx
je 0x10052061
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4cc], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x4cc]
push esi
call fcn.10029630
test al, al
jne 0x10051dbc
test esi, esi
jne 0x10051d98
xor ecx, ecx
jmp 0x10051daf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10051da0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4cc]
call fcn.1002b150
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x4cc]
push eax
lea eax, [ebp - 0x4d0]
push eax
call fcn.10176f50
add esp, 0xc
mov byte [ebp - 4], 0x12
mov eax, ebx
mov edx, dword [ebp - 0x4cc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051dfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4d0]
cmp dword [eax - 0xc], 0
jne 0x10051e6f
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x4d0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051e2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x4d4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051e4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4a8]
call fcn.10020960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x490]
call fcn.10020960
jmp 0x1005201f
push eax
call fcn.101ce995
add esp, 4
test eax, eax
jle 0x10051f20
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x4d0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051ea1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x4d4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051ec2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4a8]
call fcn.10020960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x490]
call fcn.10020960
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4c8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10051f02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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.1017034a
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0xe
mov eax, ebx
mov edx, dword [ebp - 0x4d0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051f41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, ebx
mov edx, dword [ebp - 0x4d4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10051f62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x494]
cmp edx, 8
jb 0x10051fa6
mov ecx, dword [ebp - 0x4a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10051f9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005206b
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x47c]
cmp edx, 8
jb 0x10052002
mov ecx, dword [ebp - 0x490]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10051ff8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10052070
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c8]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10052041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x10051f04
call fcn.101c1b70
call fcn.101c1b70
call fcn.101c1b70
call fcn.101c1b70
call fcn.101c1b70
push 0x80004005
call fcn.100253e0
call fcn.101c1b70
call fcn.101c1b70
int3