Function at 0x510f85
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3789
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xe0], ecx
mov eax, dword [ebp - 0xe0]
cmp dword [eax + 0x18], 0
je 0x510fea
mov ecx, dword [ebp + 8]
and ecx, 0xff
push ecx
push str.FtmAbortSession_session:__d_r_n
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00517721
lea ecx, [ebp - 0x18]
push ecx
movzx dx, byte [ebp + 8]
push edx
mov ecx, dword [ebp - 0xe0]
add ecx, 0x390
call sub.MFC42.DLL_CMapWordToPtr::Lookup
test eax, eax
jne 0x51103a
push str.Internal_error:_trying_to_abort_an_unknown_FtmSession_r_n
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00517721
xor eax, eax
jmp 0x511291
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x20], eax
push 0x2c
call fcn.00403600
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0xd4], 0
je 0x51107b
mov cl, byte [ebp + 0xc]
push ecx
mov dl, byte [ebp + 8]
push edx
mov ecx, dword [ebp - 0xd4]
call fcn.0052451d
mov dword [ebp - 0xe4], eax
jmp 0x511085
mov dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xa8]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
push 0x5f9c64
push 0x2710
push str.FTMabortTimeout
push 0x5f9c80
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0xac], eax
push 1
mov dx, word [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0xe0]
call fcn.00505b74
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0x1c], edx
jmp 0x51111f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00411360
cmp dword [ebp - 0x1c], 0
jne 0x51113e
xor eax, eax
jmp 0x511291
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
call dword [eax]
cmp eax, 0x5b92d8
je 0x511164
push 0
push 0
push str.Internal_error:_FtmSessionAbortRequest_received_something_different_from_a_FtmNewSessionReply
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
jmp 0x511291
lea ecx, [ebp - 0x18]
push ecx
movzx dx, byte [ebp + 8]
push edx
mov ecx, dword [ebp - 0xe0]
add ecx, 0x390
call sub.MFC42.DLL_CMapWordToPtr::Lookup
test eax, eax
je 0x511249
mov eax, dword [ebp - 0xe0]
cmp dword [eax + 0x38c], 0
jne 0x511249
mov ecx, dword [ebp - 0xe0]
cmp dword [ecx + 0x384], 0
je 0x5111bb
int3
push 0
push 0
push 0
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [ebp - 0xc8], 0x12
jne 0x5111e6
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
jmp 0x511291
cmp dword [ebp - 0xc8], 0x112
jne 0x51122a
mov eax, dword [ebp - 0xc4]
and eax, 0xfff0
cmp eax, 0xf060
jne 0x51122a
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
jmp 0x511291
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x511164
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xdc], ecx
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xd8], edx
cmp dword [ebp - 0xd8], 0
je 0x511282
push 1
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xd8]
mov edx, dword [eax]
call dword [edx + 4]
mov dword [ebp - 0xec], eax
jmp 0x51128c
mov dword [ebp - 0xec], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10