Function at 0x4092a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48852a
mov eax, dword fs:[0]
push eax
sub esp, 0xab8
mov eax, dword [0x4a4014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xa4c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa7c]
mov dword [edi + 0x532], 1
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [esi + 0x45]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 2
push dword [eax]
mov ecx, dword [0x4a6048]
push 5
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x5c]
call fcn.00414220
push eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xa4c]
push 0x49b258
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4a6048]
add esp, 0xc
mov dword [edi + 0x456], 0
push dword [ebp - 0xa4c]
push 6
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x436], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x60]
push eax
mov dword [edi + 0x3c6], eax
lea eax, [ebp - 0xa4c]
push 0x49b258
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4a6048]
add esp, 0xc
push dword [ebp - 0xa4c]
push 7
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x90]
push eax
mov dword [edi + 0x43a], eax
lea eax, [ebp - 0xa4c]
push 0x49b258
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4a6048]
add esp, 0xc
push dword [ebp - 0xa4c]
push 9
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x9c]
push eax
mov dword [edi + 0x3ca], eax
lea eax, [ebp - 0xa4c]
push 0x49b258
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4a6048]
add esp, 0xc
push dword [ebp - 0xa4c]
push 8
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x78]
push eax
mov dword [edi + 0x43e], eax
lea eax, [ebp - 0xa4c]
push 0x49b258
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4a6048]
add esp, 0xc
push dword [ebp - 0xa4c]
push 0xa
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xa74], 0
mov eax, dword [ecx + 0xb0]
lea ecx, [ebp - 0xa78]
mov dword [ebp - 0xa78], eax
lea eax, [ebp - 0xa70]
push eax
call fcn.0040dfa0
test eax, eax
je 0x40949f
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x38], eax
jmp 0x4094a6
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xa78]
call fcn.0040dfa0
test eax, eax
je 0x4094c5
mov eax, dword [eax + 0x10]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x4094cc
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xac4]
push eax
lea ecx, [ebp - 0xa78]
call fcn.0040dfa0
test eax, eax
je 0x4094ec
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x4094ee
xor eax, eax
push dword [ebp - 0x38]
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xa4c]
push str._d__d__d
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4a6048]
add esp, 0x14
push dword [ebp - 0xa4c]
push 0xd
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [edi + 4]
mov esi, dword [ebp - 0x28]
add eax, eax
push 0x100
mov dword [ebp - 0x18], eax
add esi, 0xb4
lea eax, [ebp - 0x648]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x18]
mov eax, ecx
shr eax, 0x18
push eax
movzx eax, cl
push eax
lea eax, [ebp - 0x648]
push 0x49b038
push eax
call fcn.0040dd00
lea eax, [ebp - 0x648]
push eax
push esi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0x24
test eax, eax
jne 0x409580
mov dword [edi + 0x3ce], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x46e], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax + 0x10]
mov dword [edi + 0x55c], eax
cmp eax, 0xc
je 0x409dda
cmp dword [0x4a603c], 0
mov esi, dword [ebp + 0x10]
je 0x409a76
mov ecx, dword [0x4a6048]
push 0x49b254
push 4
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
cmp dword [edi + 0x436], 1
jne 0x4095f9
cmp dword [edi + 0x3c6], 0
jne 0x4095f9
cmp dword [edi + 0x3ca], 0
jne 0x4095f9
cmp dword [edi + 0x43e], 0
jne 0x4095f9
push 1
push esi
mov ecx, edi
call fcn.00407c20
jmp 0x409ed4
push 0x400
lea eax, [ebp - 0x548]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0xa48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0xa6c], 0
lea eax, [ebp - 0x548]
mov dword [ebp - 0xa53], 0
xorps xmm0, xmm0
mov byte [ebp - 0xa4f], 0
movups xmmword [ebp - 0xa6b], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0xa5b], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0xa48]
push 0x49ab84
push eax
call fcn.0040dcc0
push dword [edi + 4]
lea eax, [ebp - 0xa6c]
push 0x49aa8c
push eax
call fcn.0040dce0
add esp, 0x18
lea eax, [ebp - 0xa48]
push eax
push 0
lea eax, [ebp - 0xa6c]
push eax
push 0x49ab9c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x30]
dec ecx
mov dword [ebp - 0x18], eax
cmp ecx, 0xc8
ja 0x409a76
mov edx, dword [edi + 0x4ea]
cmp edx, dword [0x4a4c54]
jb 0x4096da
mov ecx, dword [edi + 0x4ee]
cmp ecx, 3
je 0x409731
cmp ecx, 4
je 0x409731
cmp edx, 0xf
jb 0x4096ef
mov ecx, dword [edi + 0x4ee]
cmp ecx, 3
je 0x4096ef
cmp ecx, 4
jne 0x409731
cmp dword [ebp - 0x30], 0x5a
jb 0x409731
cmp dword [edi + 0x3c6], 0x12c
jb 0x409731
mov ecx, dword [edi + 0x43a]
cmp ecx, 1
jb 0x40971d
cmp ecx, 0x1f4
jae 0x40971d
cmp dword [0x4a5f50], 0
jne 0x409731
cmp dword [edi + 0x43e], 0x4e20
jb 0x409731
test eax, eax
je 0x409a76
push 0x100
lea eax, [ebp - 0x148]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x18]
lea eax, [ebp - 0x148]
push dword [edi + 0x43e]
push dword [edi + 0x43a]
push dword [edi + 0x3c6]
push dword [ebp - 0x30]
push 0x49b054
push eax
call fcn.0040dd00
push 0x400
lea eax, [ebp - 0xa48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x548]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x40
mov byte [ebp - 0xa6c], 0
lea eax, [ebp - 0xa48]
mov dword [ebp - 0xa53], 0
xorps xmm0, xmm0
mov byte [ebp - 0xa4f], 0
movups xmmword [ebp - 0xa6b], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0xa5b], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x548]
push 0x49ab84
push eax
call fcn.0040dcc0
push dword [edi + 4]
lea eax, [ebp - 0xa6c]
push 0x49aa8c
push eax
call fcn.0040dce0
mov eax, dword [ebp - 0x28]
add esp, 0x18
mov ecx, dword [0x4a6048]
mov eax, dword [eax + 0x33]
mov dword [edi + 0x3b2], 2
cmp eax, dword [edi + 4]
je 0x409877
push str.penc
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea eax, [ebp - 0x548]
mov dword [edi + 0x4ea], 0
push eax
push 0x49b08c
lea eax, [ebp - 0xa6c]
push eax
push 0x49ab9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.004165b0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409ed4
mov dword [eax], 7
jmp 0x409ed4
push 0x49b090
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x409a51
cmp dword [ebp - 0x30], 0x5a
jae 0x4098d8
lea eax, [ebp - 0x548]
push eax
push 0x49ab98
lea eax, [ebp - 0xa6c]
push eax
push 0x49ab9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409a63
mov dword [eax], 2
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.004165b0
jmp 0x409ed4
cmp dword [edi + 0x3c6], 0x12c
jae 0x409926
lea eax, [ebp - 0x548]
push eax
push 0x49afc4
lea eax, [ebp - 0xa6c]
push eax
push 0x49ab9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409a63
mov dword [eax], 4
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.004165b0
jmp 0x409ed4
cmp dword [edi + 0x43e], 0x4e20
jae 0x409982
lea eax, [ebp - 0x548]
push eax
push 0x49b0a4
lea eax, [ebp - 0xa6c]
push eax
push 0x49ab9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.004165b0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409a63
mov dword [eax], 5
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.004165b0
jmp 0x409ed4
cmp dword [0x4a5f50], 0
je 0x4099ed
mov eax, dword [edi + 0x43a]
cmp eax, 1
jb 0x4099ed
cmp eax, 0x1f4
jae 0x4099ed
lea eax, [ebp - 0x548]
push eax
push 0x49b0a8
lea eax, [ebp - 0xa6c]
push eax
push 0x49ab9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.004165b0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409a63
mov dword [eax], 6
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.004165b0
jmp 0x409ed4
mov eax, dword [edi + 0x4ea]
cmp eax, dword [0x4a4c54]
jb 0x409a63
lea eax, [ebp - 0x548]
mov dword [edi + 0x4ea], 0
push eax
push 0x49b08c
lea eax, [ebp - 0xa6c]
push eax
push 0x49ab9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.004165b0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409a63
mov dword [eax], 8
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.004165b0
jmp 0x409ed4
cmp eax, 1
jne 0x409a63
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409a63
mov dword [eax], 1
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.004165b0
jmp 0x409ed4
mov eax, dword [edi + 0x55c]
test eax, eax
jne 0x409c97
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 0xa]
mov word [edi + 0x546], ax
mov word [edi + 0x542], ax
movzx eax, ax
test ax, ax
je 0x409c89
cwde
cmp eax, 0xffff
jge 0x409c89
cmp dword [0x4a5f4c], 0
je 0x409ad3
mov ecx, edi
call fcn.00407690
mov ecx, dword [0x4a6048]
push 0x49b0d4
push 0x12
push esi
mov dword [edi + 0x492], 1
mov dword [edi + 0x41e], 0
mov dword [edi + 0x4a2], 1
mov dword [edi + 0x558], 1
mov dword [edi + 0x560], 0
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, edi
mov dword [edi + 0x3f6], eax
call fcn.0040aad0
mov ecx, edi
call fcn.0040cbc0
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
mov ecx, edi
mov word [ebp - 0x14], 0x12
call fcn.0040ba90
mov ecx, edi
call fcn.0040b8c0
cmp dword [0x4a6038], 0
je 0x409b65
mov ecx, edi
call fcn.0040d250
call esi
mov dword [edi + 0x3ee], eax
call esi
cmp dword [0x4a600c], 0
mov dword [edi + 0x3de], eax
je 0x409b9c
push 0
lea esi, [edi + 0x5a8]
mov ecx, edi
push esi
push 0
call fcn.0040b240
push 0
push esi
push 4
mov ecx, edi
call fcn.0040b240
cmp dword [0x4a5f48], 0
jne 0x409bae
cmp dword [0x4a603c], 0
je 0x409bb8
sub esp, 8
mov ecx, edi
call fcn.0040b540
cmp dword [0x4a5f44], 0
je 0x409c6d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x80000
push eax
mov ecx, edi
mov word [ebp - 0x14], 0
call fcn.0040d420
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x101
push eax
mov ecx, edi
mov word [ebp - 0x34], 0x7f00
call fcn.0040d420
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x10000
push eax
mov ecx, edi
mov word [ebp - 0x2c], 0
call fcn.0040d420
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x400001
push eax
mov ecx, edi
mov word [ebp - 0x24], 0
call fcn.0040d420
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x101
push eax
mov ecx, edi
mov word [ebp - 0x1c], 0xf00
call fcn.0040d420
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x101
push eax
mov ecx, edi
mov word [ebp - 0x3c], 0xe00
call fcn.0040d420
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], reloc.WS2_32.dll_accept
push eax
mov ecx, edi
mov word [ebp - 0x44], 0
call fcn.0040d420
cmp dword [0x4a603c], 0
jne 0x409ed4
sub esp, 8
mov ecx, edi
call fcn.0040b430
jmp 0x409ed4
xor eax, eax
mov word [edi + 0x546], ax
jmp 0x409ed4
cmp eax, 1
jne 0x409d29
inc dword [edi + 0x560]
cmp dword [edi + 0x560], 2
jae 0x409ccb
push 0x49b0ac
push esi
mov ecx, edi
mov dword [edi + 0x55c], 0
call fcn.00406540
jmp 0x409ed4
mov ecx, dword [0x4a6048]
push 0x49b0b8
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [edi + 4]
mov edx, 0x49b0c0
call fcn.004165b0
cmp dword [0x4a5f4c], 0
je 0x409cfc
mov ecx, edi
call fcn.00407690
cmp dword [0x4a603c], 0
je 0x409ed4
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x3b2], 2
test eax, eax
je 0x409ed4
mov dword [eax], 2
jmp 0x409ed4
cmp eax, 0xc
je 0x409dda
cmp eax, 5
jne 0x409d4d
mov ecx, dword [0x4a6048]
push 0x49b0e8
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
jmp 0x409cfc
cmp eax, 0x38
jne 0x409d75
mov ecx, dword [0x4a6048]
push 0x49b0f8
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0
push esi
mov ecx, edi
call fcn.00407c20
jmp 0x409ed4
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
push dword [edi + 0x55c]
push 0x49b104
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4a6048]
add esp, 0xc
push dword [ebp - 0x30]
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
cmp dword [0x4a603c], 0
je 0x409dcc
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x3b2], 2
test eax, eax
je 0x409dcc
mov dword [eax], 2
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x409ed4
mov ecx, dword [0x4a6048]
push 0x49aba8
push 0x12
push dword [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [edi + 4]
mov edx, 0x49b0e0
call fcn.004165b0
cmp dword [0x4a603c], 0
je 0x409ed4
push 0x400
lea eax, [ebp - 0xa48]
mov dword [edi + 0x3b2], 2
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x548]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0xa6c], 0
lea eax, [ebp - 0xa48]
mov dword [ebp - 0xa53], 0
xorps xmm0, xmm0
mov byte [ebp - 0xa4f], 0
movups xmmword [ebp - 0xa6b], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0xa5b], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x548]
push 0x49ab84
push eax
call fcn.0040dcc0
push dword [edi + 4]
lea eax, [ebp - 0xa6c]
push 0x49aa8c
push eax
call fcn.0040dce0
add esp, 0x18
lea eax, [ebp - 0x548]
push eax
push 0x49acb0
lea eax, [ebp - 0xa6c]
push eax
push 0x49ab9c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409ed4
mov dword [eax], 3
lea ecx, [ebp - 0xa7c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c14d
mov esp, ebp
pop ebp
ret 0x10