Function at 0x40fe20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100b0
call fcn.0041bb90
mov eax, dword [0x41e038]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1009c], eax
mov eax, 7
push edi
mov dword [ebp - 0x10094], ecx
mov edi, edx
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x10070], eax
mov dword [ebp - 0x1001c], eax
xor ecx, ecx
mov dword [ebp - 0x10038], eax
push 1
mov eax, 0x402d44
lea esi, [ebp - 0x1004c]
mov dword [ebp - 0x10074], ebx
mov word [ebp - 0x10084], dx
mov dword [ebp - 0x10020], ebx
mov word [ebp - 0x10030], cx
mov dword [ebp - 0x1003c], ebx
mov word [ebp - 0x1004c], dx
call fcn.004088c0
mov eax, esi
push eax
mov ecx, edi
lea edx, [ebp - 0x100ac]
call fcn.00410cc0
add esp, 4
cmp dword [ebp - 0x10038], 8
jb 0x40fecd
mov ecx, dword [ebp - 0x1004c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0x100a8]
mov edi, dword [ebp - 0x100ac]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x10090], ebx
mov dword [ebp - 0x10098], eax
je 0x4102c8
mov dword [ebp - 0x10088], edi
mov edi, dword [ebp - 0x10094]
push ebx
xor edx, edx
push edi
or eax, 0xffffffff
lea ecx, [ebp - 0x1004c]
mov dword [ebp - 0x10038], 7
mov dword [ebp - 0x1003c], ebx
mov word [ebp - 0x1004c], dx
call fcn.00408480
push 7
mov eax, 0x402d48
lea ecx, [ebp - 0x1004c]
call fcn.00408790
mov eax, dword [ebp - 0x1009c]
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x1004c]
call fcn.00408c70
push 1
mov eax, 0x401a10
mov ecx, esi
call fcn.00408790
mov ecx, dword [ebp - 0x10088]
push ebx
push ecx
or eax, 0xffffffff
call fcn.00408c70
push ebx
xor edx, edx
push edi
or eax, 0xffffffff
lea ecx, [ebp - 0x10068]
mov dword [ebp - 0x10054], 7
mov dword [ebp - 0x10058], ebx
mov word [ebp - 0x10068], dx
call fcn.00408480
mov eax, dword [ebp - 0x10088]
push ebx
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x10068]
call fcn.00408c70
mov eax, dword [ebp - 0x1004c]
mov edi, 8
cmp dword [ebp - 0x10038], edi
jae 0x40ffd3
lea eax, [ebp - 0x1004c]
push eax
push 0x7fff
lea ecx, [ebp - 0x10014]
push ecx
push 0x402d98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x1008c], eax
mov eax, dword [ebp - 0x1004c]
cmp dword [ebp - 0x10038], edi
jae 0x410005
lea eax, [ebp - 0x1004c]
mov esi, dword [sym.imp.MSVCR100.dll__waccess]
push ebx
push eax
call esi
add esp, 8
test eax, eax
jne 0x410259
mov eax, dword [ebp - 0x10068]
cmp dword [ebp - 0x10054], edi
jae 0x41002e
lea eax, [ebp - 0x10068]
push ebx
push eax
call esi
add esp, 8
test eax, eax
jne 0x410259
mov eax, dword [ebp - 0x1008c]
cmp eax, ebx
jbe 0x410259
test eax, eax
je 0x410257
movzx eax, word [ebp + ebx*2 - 0x10014]
cmp eax, 0x3d
jne 0x410234
mov ecx, dword [ebp - 0x10068]
cmp dword [ebp - 0x10054], edi
jae 0x410078
lea ecx, [ebp - 0x10068]
mov eax, dword [ebp - 0x10084]
cmp dword [ebp - 0x10070], edi
jae 0x41008c
lea eax, [ebp - 0x10084]
push ecx
push 4
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push 0x402d98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4101f8
movzx eax, word [ebp + ebx*2 - 0x10012]
inc ebx
test ax, ax
je 0x410160
mov ecx, dword [ebp - 0x10020]
movzx edi, ax
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x41034f
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x41034f
mov eax, dword [ebp - 0x1001c]
cmp eax, esi
jae 0x4101cf
push ecx
push esi
lea ecx, [ebp - 0x10030]
push ecx
call fcn.00408a30
mov ecx, dword [ebp - 0x10020]
mov eax, dword [ebp - 0x1001c]
test esi, esi
je 0x410149
cmp eax, 8
mov eax, dword [ebp - 0x10030]
jae 0x41011e
lea eax, [ebp - 0x10030]
mov word [eax + ecx*2], di
cmp dword [ebp - 0x1001c], 8
mov eax, dword [ebp - 0x10030]
mov dword [ebp - 0x10020], esi
jae 0x41013d
lea eax, [ebp - 0x10030]
xor ecx, ecx
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0x10020]
movzx eax, word [ebp + ebx*2 - 0x10012]
inc ebx
test ax, ax
jne 0x4100c1
mov edi, 8
mov edx, dword [ebp - 0x10068]
cmp dword [ebp - 0x10054], edi
jae 0x410174
lea edx, [ebp - 0x10068]
mov ecx, dword [ebp - 0x10030]
cmp dword [ebp - 0x1001c], edi
jae 0x410188
lea ecx, [ebp - 0x10030]
mov eax, dword [ebp - 0x10084]
cmp dword [ebp - 0x10070], edi
jae 0x41019c
lea eax, [ebp - 0x10084]
push edx
push ecx
push eax
push 0x402d98
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x10030]
mov dword [ebp - 0x10020], 0
cmp dword [ebp - 0x1001c], edi
jae 0x4101c8
lea eax, [ebp - 0x10030]
xor edx, edx
mov word [eax], dx
jmp 0x41020f
test esi, esi
jne 0x41010d
cmp eax, 8
mov eax, dword [ebp - 0x10030]
mov dword [ebp - 0x10020], esi
jae 0x4101ee
lea eax, [ebp - 0x10030]
xor edx, edx
mov word [eax], dx
jmp 0x410143
cmp word [ebp + ebx*2 - 0x10014], 0
je 0x41020f
inc ebx
cmp word [ebp + ebx*2 - 0x10014], 0
jne 0x410203
mov eax, dword [ebp - 0x10084]
mov dword [ebp - 0x10074], 0
cmp dword [ebp - 0x10070], edi
jae 0x41022d
lea eax, [ebp - 0x10084]
xor ecx, ecx
mov word [eax], cx
jmp 0x41024a
push eax
mov eax, 1
lea edi, [ebp - 0x10084]
call fcn.00408330
mov edi, 8
inc ebx
cmp ebx, dword [ebp - 0x1008c]
jb 0x410053
xor ebx, ebx
cmp dword [ebp - 0x10054], edi
jb 0x410271
mov edx, dword [ebp - 0x10068]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x10054], 7
mov dword [ebp - 0x10058], ebx
mov word [ebp - 0x10068], ax
cmp dword [ebp - 0x10038], edi
jb 0x4102a2
mov ecx, dword [ebp - 0x1004c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x10090]
add dword [ebp - 0x10088], 0x1c
inc eax
mov dword [ebp - 0x10090], eax
cmp eax, dword [ebp - 0x10098]
jb 0x40ff06
mov edi, dword [ebp - 0x100ac]
cmp edi, ebx
je 0x4102f0
mov esi, edi
cmp edi, dword [ebp - 0x100a8]
je 0x4102e6
call fcn.00412770
add esi, 0x1c
cmp esi, dword [ebp - 0x100a8]
jne 0x4102d6
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
cmp dword [ebp - 0x1001c], esi
jb 0x41030d
mov edx, dword [ebp - 0x10030]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x1001c], 7
mov dword [ebp - 0x10020], ebx
mov word [ebp - 0x10030], ax
cmp dword [ebp - 0x10070], esi
jb 0x41033e
mov ecx, dword [ebp - 0x10084]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b4f6
mov esp, ebp
pop ebp
ret
push 0x401768
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3