Function at 0x100057c0
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x1003f418
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10071350]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x40], ebx
call fcn.100167a0
push 0xffffffffffffffff
push 0x78
push 0
push 0x10054cfc
push 0
lea ecx, [ebx + 0x100]
call fcn.10016f18
push 0xffffffffffffffff
push 0x78
push 0
push 0x10054cfc
push 0
lea ecx, [ebx + 0x15c]
call fcn.10016f18
call fcn.10015660
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add eax, 8
mov eax, dword [eax]
push eax
push 0x100
lea eax, [ebp]
push eax
push 0x10054c3b
push str.DTNAME
push str.BENBEN_JBDT
call edi
call fcn.1001f082
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000587b
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
lea ecx, [ebp]
push ecx
lea edx, [ebp - 0x24]
push 0x10054c24
push edx
mov dword [ebp - 4], 0
call fcn.100039d0
mov eax, dword [ebp - 0x24]
add esp, 8
add eax, 0xfffffff0
mov dword [ebp - 0x38], esp
mov esi, esp
push eax
call fcn.100028b0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.100045c0
lea ecx, [ebx + 0xfc]
push eax
mov byte [ebp - 4], 1
call fcn.10003910
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100058ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.1001f082
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10005919
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.10015660
add eax, 8
mov eax, dword [eax]
push eax
push 0x100
lea ecx, [ebp]
push ecx
push 0x10054c3b
push str.JBNAME
push str.BENBEN_JBDT
call edi
lea edx, [ebp]
push edx
lea eax, [ebp - 0x1c]
push 0x10054c24
push eax
call fcn.100039d0
mov edi, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [edi - 0xc], 0
je 0x10005d79
mov byte [ebp - 4], 3
call fcn.1001f082
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10005991
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
call fcn.10015660
push edi
add eax, 0xc
push eax
lea ecx, [ebp - 0x30]
push 0x10054cec
push ecx
call fcn.100039d0
mov edx, dword [ebp - 0x30]
add esp, 0x10
push 0
push edx
lea ecx, [ebp - 0x60]
call fcn.1001ff51
mov byte [ebp - 4], 5
call fcn.1001f082
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x100059eb
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x34], 0
call fcn.1001f082
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10005a1f
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
call fcn.1001f082
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10005a4c
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 8
call fcn.1001f082
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x10005a79
push 0x80004005
call fcn.100026a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 9
lea esp, [esp]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x60]
call fcn.1001fe1a
test eax, eax
je 0x10005c9f
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jge 0x10005ab2
mov dword [ebp - 0x18], esi
jmp 0x10005ad4
push 0x10054c5c
push eax
call fcn.10027373
add esp, 8
test eax, eax
jne 0x10005ac9
mov dword [ebp - 0x18], esi
jmp 0x10005ad4
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp eax, 1
je 0x10005a90
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.100032b0
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.10003910
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x10005b11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x4c], esp
mov esi, esp
push eax
call fcn.100028b0
add esp, 4
lea ecx, [ebp - 0x48]
add eax, 0x10
push ecx
mov ecx, ebx
mov dword [esi], eax
call fcn.100045c0
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
push 0
push 0
push 0
push 0
push eax
push edx
lea esi, [ebx + 0x100]
push 1
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.10016f64
mov edi, eax
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005b7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10027abe
add esp, 4
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
mov ecx, esi
call fcn.10016fa7
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x10005c94
push 0x10054cf8
push eax
call fcn.10027373
add esp, 8
test eax, eax
je 0x10005c94
sub eax, dword [ebp - 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005c94
mov eax, dword [ebp - 0x18]
mov edx, esi
sub edx, eax
push edx
inc eax
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003180
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.10003910
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005c15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10027abe
add esp, 4
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 0x74]
mov dword [ebp - 0x18], eax
call fcn.100056f0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10003230
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.10003910
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005c76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.10027abe
add esp, 4
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 0x8c]
mov dword [ebp - 0x18], eax
call fcn.100056f0
inc dword [ebp - 0x34]
or esi, 0xffffffff
jmp 0x10005a90
lea ecx, [ebp - 0x60]
call fcn.1001fc83
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005cc9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005ceb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005d0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005d2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.1001fcff
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005d5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 2
jmp 0x10005d79
push 0
mov ecx, ebx
call fcn.100195b6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005da4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov dword [ebp - 4], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x10005dc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.10026ddc
add ebp, 0x104
mov esp, ebp
pop ebp
ret