Function at 0x402080
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41b4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
call fcn.004050b0
mov ebx, eax
call fcn.00405120
push str.Getting_ini_string_info
mov edi, eax
push str.MiniIni::GetIniString__
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.00404460
push eax
mov ecx, ebx
call fcn.00404450
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax]
call fcn.0041445f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
mov ecx, dword [esi + 0x110]
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push ecx
lea ebp, [esi + 0xc]
push ebp
push 0x41c4f0
push edx
push eax
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
push str.MiniIni::GetIniString__
mov ecx, ebx
mov dword [esp + 0x3c], eax
call fcn.00404460
push eax
mov ecx, ebx
call fcn.00404450
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx]
push 0x41c4f0
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x402226
push 0x18
push str._nInformation_not_found:_n
lea ecx, [esp + 0x18]
call fcn.00401cc0
push 0xb
push str.File_Name:
lea ecx, [esp + 0x18]
call fcn.00401fb0
mov edx, dword [esi]
test edx, edx
jne 0x40216c
xor eax, eax
jmp 0x40217a
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402171
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00401fb0
push 0xa
push str._nSection:
lea ecx, [esp + 0x18]
call fcn.00401fb0
mov edi, dword [esi + 4]
test edi, edi
jne 0x4021a0
xor eax, eax
jmp 0x4021ae
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021a5
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00401fb0
push 6
push str._nKey:
lea ecx, [esp + 0x18]
call fcn.00401fb0
mov edx, dword [esi + 8]
test edx, edx
jne 0x4021d4
xor eax, eax
jmp 0x4021e9
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021e0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00401fb0
push 8
push str._nValue:
lea ecx, [esp + 0x18]
call fcn.00401fb0
test ebp, ebp
jne 0x402211
xor eax, eax
push eax
push ebp
jmp 0x4023ef
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402216
sub eax, edx
push eax
push ebp
jmp 0x4023ef
mov eax, dword [esi + 0x110]
mov ecx, dword [esp + 0x34]
lea edx, [eax - 1]
cmp ecx, edx
je 0x4023ac
add eax, 0xfffffffe
cmp ecx, eax
je 0x4023ac
test ecx, ecx
jg 0x402357
push str._nGetPrivateProfileString:_no_Value__n
lea ecx, [esp + 0x14]
call fcn.00401dd0
push str.File_Name:
lea ecx, [esp + 0x14]
call fcn.00402040
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x14]
call fcn.00402040
push str._nSection:
lea ecx, [esp + 0x14]
call fcn.00402040
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402040
push str._nKey:
lea ecx, [esp + 0x14]
call fcn.00402040
mov edx, dword [esi + 8]
push edx
lea ecx, [esp + 0x14]
call fcn.00402040
push str._nValue:
lea ecx, [esp + 0x14]
call fcn.00402040
mov ecx, dword [esi + 0x110]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebp
lea ecx, [esp + 0x14]
call fcn.00402040
push 0x41c47c
lea ecx, [esp + 0x14]
call fcn.00402040
mov ecx, dword [esi + 0x110]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
je 0x40230f
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402340
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
test ebx, ebx
je 0x402364
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402393
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push 0x37
push str.ERROR:_szValue_is_too_small_to_hold_the_buffer__cBuf_
lea ecx, [esp + 0x18]
call fcn.00401cc0
mov ecx, dword [esi + 0x110]
push 0xa
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004086da
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023e0
sub eax, edx
push eax
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.00401fb0
push 1
lea ecx, [esp + 0x14]
push 0x41c47c
call fcn.00401fb0
mov ecx, dword [esi + 0x110]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
je 0x40242d
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40245e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4