Function at 0x404ca0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x409898
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x14c
push esi
mov esi, ecx
cmp eax, dword [esi + 0x414]
jne 0x404cd9
mov ecx, dword [esp + 0x164]
test ecx, ecx
je 0x40510e
push ebx
push ebp
push edi
mov ecx, esi
mov dword [esi + 0x414], eax
call fcn.00403a70
mov eax, dword [esi + 0x414]
cmp eax, 0xffffffff
jne 0x404d12
push 0x40a8e0
lea ecx, [esi + 0x248]
call sub.MFC70.DLL_Ordinal_5815
mov word [esi + 0x412], 0
jmp 0x404dbc
mov ecx, dword [esi + 0x41c]
mov eax, dword [ecx + eax*4]
push eax
lea ecx, [esi + 0x248]
call sub.MFC70.DLL_Ordinal_5815
mov edx, dword [esi + 0x414]
mov eax, dword [esi + 0x41c]
mov eax, dword [eax + edx*4]
lea edi, [esi + 0x440]
push edi
push 0
push 0x40b10c
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esi + 0x414]
mov edx, dword [esi + 0x41c]
push edi
push 0x104
mov word [esi + 0x412], ax
mov eax, dword [edx + ecx*4]
lea ecx, [esp + 0x60]
push ecx
push 0x40a8e0
push 0x40b100
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x50
push 0
push 0
push 0
lea edx, [esp + 0x68]
push edx
push 0
lea edi, [esi + 0x404]
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
mov ecx, edi
call sub.MFC70.DLL_Ordinal_1152
test edi, edi
je 0x404da7
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x2bc]
push edi
push 0
push 0xf7
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esi + 0x2f0]
call sub.MFC70.DLL_Ordinal_3206
movzx ebx, word [esi + 0x412]
movzx ecx, word [esi + 0x410]
add ebx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
lea eax, [ebx*4]
xor edi, edi
push eax
mov dword [esp + 0x168], edi
call dword [sym.imp.MSVCR70.dll_malloc]
add esp, 4
test ebx, ebx
mov dword [esi + 0x40c], eax
jle 0x4050e5
lea ebx, [esi + 0x440]
mov dword [esp + 0x14], 0x3c
jmp 0x404e30
push 0x88
call sub.MFC70.DLL_Ordinal_703
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x164], 1
je 0x404e56
mov ecx, eax
call fcn.00401900
jmp 0x404e58
xor eax, eax
mov ecx, dword [esi + 0x40c]
mov dword [ecx + edi*4], eax
movzx eax, word [esi + 0x410]
cmp edi, eax
mov byte [esp + 0x164], 0
jge 0x404ec0
lea edx, [edi + 1]
push edx
lea eax, [esp + 0x14]
push 0x40b0f4
push eax
call fcn.00404a40
mov ebp, dword [esp + 0x1c]
add esp, 0xc
push ebx
push 0x104
lea ecx, [esp + 0x60]
push ecx
push 0x40a8e0
push ebp
push 0x40b0e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0x14
mov dword [esp + 0x28], 0xe6
jmp 0x404f28
mov edx, edi
sub edx, eax
inc edx
push edx
lea eax, [esp + 0x14]
push 0x40b0f4
push eax
call fcn.00404a40
mov ecx, dword [esi + 0x414]
mov edx, dword [esi + 0x41c]
mov eax, dword [edx + ecx*4]
mov ebp, dword [esp + 0x1c]
add esp, 0xc
push ebx
push 0x104
lea ecx, [esp + 0x60]
push ecx
push 0x40a8e0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movzx edx, word [esi + 0x410]
mov eax, edi
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax*8 + 0x3c]
mov dword [esp + 0x20], 0x10e
mov dword [esp + 0x28], 0x1e0
mov dword [esp + 0x24], eax
add eax, 0x28
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x40c]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
lea eax, [edi + 1]
mov dword [esp + 0x18], eax
add eax, 0x2710
push eax
push esi
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x3c]
push eax
push 0x40b0e4
call dword [edx + pe_nt_image_headers32]
mov ecx, dword [esi + 0x40c]
mov ecx, dword [ecx + edi*4]
push 0
push 0xc8d0d4
call fcn.00401630
mov edx, dword [esi + 0x40c]
mov ecx, dword [edx + edi*4]
push 0
push 0xc8d0d4
call fcn.004016b0
lea eax, [esp + 0x58]
push 0
push eax
call dword [sym.imp.MSVCR70.dll__access]
add esp, 8
test eax, eax
jne 0x4050ba
mov ecx, dword [esi + 0x40c]
mov ecx, dword [ecx + edi*4]
push 1
call sub.MFC70.DLL_Ordinal_2012
mov ebp, dword [sym.imp.SHELL32.dll_ExtractIconExA]
push 1
push 0
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x68]
push edx
call ebp
test eax, eax
jle 0x405005
push 1
push 0
lea eax, [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x30], 0
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40501e
mov edx, dword [esi + 0x40c]
mov ecx, dword [edx + edi*4]
push 0x20
push 0x20
push 0
push eax
call fcn.004013c0
jmp 0x40501e
mov eax, dword [esi + 0x40c]
mov ecx, dword [eax + edi*4]
push 0x20
push 0x20
push 0
push 0x80
call fcn.004014c0
movzx eax, word [esi + 0x410]
cmp edi, eax
lea edx, [esp + 0x10]
jge 0x405059
mov ecx, dword [esp + 0x18]
push ecx
push 0x40b0d8
push edx
call fcn.00404a40
mov ebp, dword [esp + 0x1c]
add esp, 0xc
push ebx
push 0x20
lea eax, [esp + 0x40]
push eax
push 0x40a8e0
push ebp
push 0x40b0e8
jmp 0x40508f
mov ecx, edi
sub ecx, eax
inc ecx
push ecx
push 0x40b0d8
push edx
call fcn.00404a40
mov eax, dword [esi + 0x414]
mov ecx, dword [esi + 0x41c]
mov ebp, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
add esp, 0xc
push ebx
push 0x20
lea edx, [esp + 0x40]
push edx
push 0x40a8e0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esi + 0x40c]
mov ecx, dword [ecx + edi*4]
lea eax, [esp + 0x38]
push eax
call sub.MFC70.DLL_Ordinal_5815
mov edx, dword [esi + 0x40c]
mov ecx, dword [edx + edi*4]
push 2
call fcn.00401530
jmp 0x4050ca
mov eax, dword [esi + 0x40c]
mov ecx, dword [eax + edi*4]
push 0
call sub.MFC70.DLL_Ordinal_2012
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
add ecx, 0x28
cmp edi, eax
mov dword [esp + 0x14], ecx
jl 0x404e30
add ebp, 0xfffffff0
mov dword [esp + 0x164], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40510b
mov ecx, dword [ebp]
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
pop esi
mov dword fs:[0], ecx
add esp, 0x158
ret 8