Function at 0x402690
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x449836
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x460770]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460770]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
push str.LBUpdater.exe
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x13c], 1
call fcn.00401830
mov edx, dword [esp + 0x28]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
or ebp, 0xffffffff
cmp esi, ebp
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40273d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4028cb
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.update.ini
lea edx, [esp + 0x140]
push edx
push ecx
call fcn.00401830
add esp, 0xc
call fcn.00402210
add esp, 4
test al, al
je 0x4028cb
push 0xfe
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.00435560
push str.ver.ini
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00401830
add esp, 0x18
mov byte [esp + 0x130], 2
mov eax, dword [esp + 0x18]
push eax
push 0xff
lea ecx, [esp + 0x2c]
push ecx
push 0x4511ab
push str.version
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.00401cb0
lea ebx, [esp + 0x14]
mov byte [esp + 0x130], 3
call fcn.00403f00
mov edi, eax
call fcn.00403f80
mov eax, dword [esp + 0x13c]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402810
push 0x80004005
call fcn.004021a0
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00432ae9
add esp, 8
test eax, eax
sete al
test al, al
mov byte [esp + 0x130], 2
mov eax, dword [esp + 0x14]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40284f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x130], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402876
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x130], 0
mov eax, dword [esp + 0x138]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x130], ebp
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4028c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x40291e
mov byte [esp + 0x130], 0
mov eax, dword [esp + 0x138]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x130], ebp
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40291c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00432019
add esp, 0x120
ret