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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009c0c9
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x100d07a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x244], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x23c], 0
call fcn.10007af0
push 0
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.10058470
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.10075650
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x23c], 1
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000ff3c
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x100a65b8
push str.LastRandDir
push str.RundllConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000fe00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000a350
cmp dword [esi + 0x10], 0
je 0x1000ff3c
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x1000ff95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov eax, str.B90BEDB7_CDC8_4BDF_9D05_34885651FDE7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
test eax, 0xffff0000
jne 0x1000fe66
movzx eax, ax
push eax
call fcn.10007b90
jmp 0x1000fe72
push 0x26
push str.B90BEDB7_CDC8_4BDF_9D05_34885651FDE7
call fcn.10003220
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 3
jb 0x1000fe80
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x238]
call fcn.10002930
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.1004f8d0
add esp, 0xc
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 5
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000fec0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.1000a350
mov edx, dword [ebp - 0x240]
or edi, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000fefc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x238]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000ff1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1000ff3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1000ff78
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000ff6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ff9f
push edx
push ecx
call fcn.1006a15b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006a4da
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002c70
call fcn.10078889
int3