Function at 0x402860
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eb75
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x41500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
call fcn.00401e50
mov ecx, eax
test ecx, ecx
jne 0x4028a4
push 0x80004005
call fcn.00401f40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
call fcn.0040e800
add esp, 4
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push str.YunUtilityService.ini
call fcn.00402c80
add esp, 4
push dword [eax]
push 0
push str.DebugOutput
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40290c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test al, 1
je 0x402ab5
push 0x20
call fcn.0040dca9
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push str.YunUtilityService.log
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402c80
add esp, 4
mov byte [ebp - 4], 2
mov ecx, esi
push dword [eax]
mov dword [ebp - 0x18], 1
call fcn.004073a0
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x402971
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push ecx
push esi
call fcn.004071a0
mov ecx, eax
call fcn.00406830
push 8
call fcn.0040dca9
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [eax + 4], 0xe
push 0x20
mov dword [eax], vtable.tp::lc_indent.0
call fcn.0040dca9
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [edi + 4], 0xd
lea ecx, [edi + 8]
mov dword [edi], vtable.tp::lc_type.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4029d2
mov eax, dword [ecx]
jmp 0x4029d4
mov eax, ecx
xor edx, edx
mov word [eax], dx
push 4
push 0x410b38
mov byte [ebp - 4], 6
call fcn.00407c50
push 0x20
mov byte [ebp - 4], 0
call fcn.0040dca9
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax + 4], 0xf
lea ecx, [eax + 8]
mov dword [eax], vtable.tp::lc_tid.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x402a22
mov eax, dword [ecx]
jmp 0x402a24
mov eax, ecx
xor edx, edx
mov word [eax], dx
push 4
push 0x410b60
mov byte [ebp - 4], 9
call fcn.00407c50
push 0x24
mov byte [ebp - 4], 0
call fcn.0040dca9
mov dword [ebp - 0x24], eax
push 0x410b70
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00406010
push eax
mov byte [ebp - 4], 0
push esi
mov dword [ebp - 0x1c], esi
call fcn.004071a0
mov ecx, eax
call fcn.004061c0
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00406110
push dword [ebp - 0x18]
mov esi, eax
push dword [esi]
call fcn.004071a0
mov ecx, eax
call fcn.004061c0
push ecx
mov ecx, esi
call fcn.00406110
mov esi, eax
push edi
push dword [esi]
call fcn.004071a0
mov ecx, eax
call fcn.004061c0
push dword [ebp - 0x20]
push dword [esi]
call fcn.004071a0
mov ecx, eax
call fcn.004061c0
mov eax, dword [ebp - 0x14]
test al, 2
je 0x402ac1
call fcn.00405050
mov eax, dword [ebp - 0x14]
test al, 4
je 0x402b78
push 4
call fcn.0040dca9
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
push 1
push ecx
push esi
mov dword [esi], vtable.tp::ld_debug_output.0
call fcn.004071a0
mov ecx, eax
call fcn.00406830
push 8
call fcn.0040dca9
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [eax + 4], 0xe
push 0x20
mov dword [eax], vtable.tp::lc_indent.0
call fcn.0040dca9
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [edi + 4], 0xd
lea ecx, [edi + 8]
mov dword [edi], vtable.tp::lc_type.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x402b3f
mov eax, dword [ecx]
jmp 0x402b41
mov eax, ecx
xor edx, edx
mov word [eax], dx
push 4
push 0x410b38
mov byte [ebp - 4], 0xd
call fcn.00407c50
push edi
push esi
mov byte [ebp - 4], 0
call fcn.004071a0
mov ecx, eax
call fcn.004061c0
push dword [ebp - 0x20]
push esi
call fcn.004071a0
mov ecx, eax
call fcn.004061c0
call fcn.00404050
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402b9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret