Function at 0x4013f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4072b6
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x40b028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 4]
lea esi, [edi + 0x10]
push ecx
mov ecx, esi
mov dword [ebp - 0x550], edi
mov dword [ebp - 0x54c], esi
call fcn.004026e0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
xor ebx, ebx
mov dword [esi + 8], ebx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [ebp - 0x540]
push edx
push edi
call fcn.004024a0
mov dword [ebp - 0x53c], ebx
mov dword [ebp - 0x538], ebx
mov dword [ebp - 0x534], ebx
mov dword [ebp - 4], ebx
push 0x48
mov dword [ebp - 0x524], ebx
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
cmp eax, ebx
je 0x401de6
mov dword [ebp - 0x528], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x528]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x528]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x528]
mov byte [eax + 0x44], 1
mov ecx, dword [ebp - 0x528]
mov byte [ecx + 0x45], 1
push 0x1ff
lea edx, [ebp - 0x4df]
push ebx
mov dword [ebp - 4], 1
push edx
mov byte [ebp - 0x4e0], bl
call sub.MSVCR100.dll_memset
push 0x63
lea eax, [ebp - 0xdf]
push ebx
push eax
mov byte [ebp - 0xe0], bl
call sub.MSVCR100.dll_memset
push 0x64
lea ecx, [ebp - 0x78]
push ebx
push ecx
call sub.MSVCR100.dll_memset
push 0x1ff
lea edx, [ebp - 0x2df]
push ebx
push edx
mov byte [ebp - 0x2e0], bl
call sub.MSVCR100.dll_memset
add esp, 0x30
lea esi, [ebp - 0x4e0]
call fcn.004010c0
test al, al
jne 0x401598
lea eax, [ebp - 0x52c]
mov dword [ebp - 4], 2
mov dword [ebp - 0x540], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x528]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x54c]
lea esi, [ebp - 0x52c]
call fcn.00402ac0
mov ecx, dword [ebp - 0x528]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea ebx, [ebp - 0x53c]
call fcn.004025a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004066b8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x528]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x52c]
call fcn.00402600
mov eax, dword [ebp - 0x528]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x528]
mov dword [eax], eax
mov eax, dword [ebp - 0x528]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x538]
mov edx, dword [ebp - 0x53c]
push ecx
push edx
lea eax, [ebp - 0x544]
push eax
lea ecx, [ebp - 0x53c]
push ecx
mov dword [ebp - 0x524], ebx
call fcn.004024a0
mov esi, dword [sym.imp.MSVCR100.dll_sprintf_s]
push str.Connect
lea edx, [ebp - 0xe0]
push 0x64
push edx
call esi
push str.username
lea eax, [ebp - 0x78]
push 0x64
push eax
call esi
push 0x200
lea ecx, [ebp - 0x2e0]
push ebx
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x24
lea edx, [ebp - 0x4e0]
push edx
push 0x200
lea eax, [ebp - 0x2e0]
push eax
push 0x40849d
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4e8], 0xf
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea esi, [eax + 1]
jmp 0x401670
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401670
sub eax, esi
mov edi, eax
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x4fc]
call fcn.00402820
mov ecx, esi
lea edi, [ebp - 0x53c]
mov byte [ebp - 4], 4
call fcn.00401fd0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], 0x10
jb 0x4016b7
mov eax, dword [ebp - 0x4fc]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea eax, [ebp - 0x78]
mov dword [ebp - 0x504], 0xf
mov dword [ebp - 0x508], ebx
mov byte [ebp - 0x518], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4016d3
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x518]
call fcn.00402820
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x4e8], 0xf
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401710
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x2e0]
lea esi, [ebp - 0x4fc]
call fcn.00402820
lea ecx, [ebp - 0x518]
lea edx, [ebp - 0x52c]
mov byte [ebp - 4], 6
call fcn.00404350
push eax
lea ecx, [ebp - 0x548]
push ecx
lea edx, [ebp - 0x52c]
push edx
call fcn.00403810
mov edi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], edi
jb 0x401776
mov eax, dword [ebp - 0x4fc]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
cmp dword [ebp - 0x504], edi
jb 0x4017a5
mov ecx, dword [ebp - 0x518]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
push str.password
lea edx, [ebp - 0x78]
push 0x64
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
push 0x200
lea eax, [ebp - 0x2e0]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x4e0]
push ecx
push 0x200
lea edx, [ebp - 0x2e0]
push edx
push 0x40849d
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401810
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x4fc]
call fcn.00402820
mov ecx, esi
lea edi, [ebp - 0x53c]
mov byte [ebp - 4], 7
call fcn.00401fd0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], 0x10
jb 0x401857
mov edx, dword [ebp - 0x4fc]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea eax, [ebp - 0x78]
mov dword [ebp - 0x504], 0xf
mov dword [ebp - 0x508], ebx
mov byte [ebp - 0x518], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401873
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x518]
call fcn.00402820
mov byte [ebp - 4], 8
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x4e8], 0xf
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4018b0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x2e0]
lea esi, [ebp - 0x4fc]
call fcn.00402820
lea ecx, [ebp - 0x518]
lea edx, [ebp - 0x52c]
mov byte [ebp - 4], 9
call fcn.00404350
push eax
lea eax, [ebp - 0x548]
push eax
lea ecx, [ebp - 0x52c]
push ecx
call fcn.00403810
mov edi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], edi
jb 0x401916
mov edx, dword [ebp - 0x4fc]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
cmp dword [ebp - 0x504], edi
jb 0x401945
mov eax, dword [ebp - 0x518]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
push str.mesnote
lea ecx, [ebp - 0x78]
push 0x64
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
push 0x200
lea edx, [ebp - 0x2e0]
push ebx
push edx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [ebp - 0x4e0]
push eax
push 0x200
lea ecx, [ebp - 0x2e0]
push ecx
push 0x40849d
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4019b0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x4fc]
call fcn.00402820
mov ecx, esi
lea edi, [ebp - 0x53c]
mov byte [ebp - 4], 0xa
call fcn.00401fd0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], 0x10
jb 0x4019f7
mov ecx, dword [ebp - 0x4fc]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea eax, [ebp - 0x78]
mov dword [ebp - 0x504], 0xf
mov dword [ebp - 0x508], ebx
mov byte [ebp - 0x518], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401a13
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x518]
call fcn.00402820
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x4e8], 0xf
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401a50
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x2e0]
lea esi, [ebp - 0x4fc]
call fcn.00402820
lea ecx, [ebp - 0x518]
lea edx, [ebp - 0x52c]
mov byte [ebp - 4], 0xc
call fcn.00404350
push eax
lea edx, [ebp - 0x548]
push edx
lea eax, [ebp - 0x52c]
push eax
call fcn.00403810
mov edi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], edi
jb 0x401ab6
mov ecx, dword [ebp - 0x4fc]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
cmp dword [ebp - 0x504], edi
jb 0x401ae5
mov edx, dword [ebp - 0x518]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
push str.mono
lea eax, [ebp - 0x78]
push 0x64
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
push 0x200
lea ecx, [ebp - 0x2e0]
push ebx
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea edx, [ebp - 0x4e0]
push edx
push 0x200
lea eax, [ebp - 0x2e0]
push eax
push 0x40849d
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x78]
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401b50
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x4fc]
call fcn.00402820
mov ecx, esi
lea edi, [ebp - 0x53c]
mov byte [ebp - 4], 0xd
call fcn.00401fd0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], 0x10
jb 0x401b97
mov eax, dword [ebp - 0x4fc]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea eax, [ebp - 0x78]
mov dword [ebp - 0x504], 0xf
mov dword [ebp - 0x508], ebx
mov byte [ebp - 0x518], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401bb3
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x518]
call fcn.00402820
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x4e8], 0xf
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401bf0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x2e0]
lea esi, [ebp - 0x4fc]
call fcn.00402820
lea ecx, [ebp - 0x518]
lea edx, [ebp - 0x52c]
mov byte [ebp - 4], 0xf
call fcn.00404350
push eax
lea ecx, [ebp - 0x548]
push ecx
lea edx, [ebp - 0x52c]
push edx
call fcn.00403810
mov edi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], edi
jb 0x401c56
mov eax, dword [ebp - 0x4fc]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
cmp dword [ebp - 0x504], edi
jb 0x401c85
mov ecx, dword [ebp - 0x518]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x4e8], esi
mov dword [ebp - 0x4ec], ebx
mov byte [ebp - 0x4fc], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401ca0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0xe0]
lea esi, [ebp - 0x4fc]
call fcn.00402820
mov edi, dword [ebp - 0x550]
mov ecx, esi
mov byte [ebp - 4], 0x10
call fcn.00401fd0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4e8], 0x10
jb 0x401cea
mov edx, dword [ebp - 0x4fc]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x508], 0xf
mov dword [ebp - 0x50c], ebx
mov byte [ebp - 0x51c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401d10
sub eax, edx
mov edi, eax
lea eax, [ebp - 0xe0]
lea esi, [ebp - 0x51c]
call fcn.00402820
lea eax, [ebp - 0x500]
mov ecx, eax
push ecx
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x53c]
mov dword [ebp - 0x544], eax
call fcn.00402ef0
lea edx, [ebp - 0x52c]
push edx
lea eax, [ebp - 0x4f0]
push eax
mov byte [ebp - 4], 0x12
call fcn.00403320
mov byte [ebp - 4], 0x13
mov ecx, esi
mov esi, dword [ebp - 0x54c]
mov edx, esi
call fcn.00404450
push eax
lea ecx, [ebp - 0x548]
push ecx
push esi
call fcn.004039d0
lea edx, [ebp - 0x51c]
push edx
mov byte [ebp - 4], 1
call fcn.00401ef0
lea eax, [ebp - 0x52c]
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x544], eax
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x528]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x540]
lea esi, [ebp - 0x52c]
call fcn.00402ac0
mov ecx, dword [ebp - 0x528]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea ebx, [ebp - 0x53c]
call fcn.004025a0
mov al, 1
jmp 0x40157c
lea edx, [ebp - 0x540]
push edx
lea ecx, [ebp - 0x55c]
mov dword [ebp - 0x540], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x409118
lea eax, [ebp - 0x55c]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3