Function at 0x100211e0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101232b2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x10167c60]
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 ebx, ecx
mov edi, dword [ebp + 8]
push 0x10174590
push 0x800
mov dword [ebp - 0x224], edi
call fcn.100c4c1d
mov esi, eax
add esp, 8
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x10021288
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x10021469
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, 0x101308ac
mov byte [ebp - 4], 1
mov ecx, edi
test eax, 0xffff0000
jne 0x10021277
movzx eax, ax
push eax
call fcn.10008a30
jmp 0x10021449
push 0
push 0x101308ac
call fcn.1000b940
jmp 0x10021449
push dword [ebx]
lea ecx, [ebp - 0x21d]
push 0x400
push esi
push 0x101308ac
push str.path
call fcn.1001e9e0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100212c4
push esi
mov ecx, edi
call fcn.100079a0
jmp 0x10021440
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100bfd10
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100212f4
sub ecx, edx
sar ecx, 1
je 0x10021402
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021310
sub ecx, edx
sar ecx, 1
je 0x10021402
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x10021473
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x10021364
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.10008a30
jmp 0x10021392
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021370
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000b940
push esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.100079a0
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x224]
push eax
push edi
call fcn.100955e0
mov edx, dword [ebp - 0x224]
or ebx, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100213e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10021440
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10021440
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x1002147d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, 0x101308ac
mov byte [ebp - 4], 2
mov ecx, edi
test eax, 0xffff0000
jne 0x10021434
movzx eax, ax
push eax
call fcn.10008a30
jmp 0x10021440
push 0
push 0x101308ac
call fcn.1000b940
push esi
call fcn.100c49a1
add esp, 4
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.100c495f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
int3