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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4868cc
mov eax, dword fs:[0]
push eax
sub esp, 0xab8
mov eax, dword [0x4a2014]
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 - 0x20], esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
push dword [esi + 0x23]
call dword [sym.imp.WS2_32.dll_htonl]
lea ecx, [ebp - 0xa7c]
mov dword [edi + 0x52a], 1
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [esi + 0x37]
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__5]
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 2
push dword [eax]
mov ecx, dword [0x4a3b14]
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 eax, dword [ebp - 0x20]
push dword [eax + 0x4e]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, eax
call fcn.00412f40
push eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xa4c]
push 0x4991d4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov ecx, dword [0x4a3b14]
add esp, 0xc
push dword [ebp - 0xa4c]
push 6
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x432], eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x52]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
mov dword [edi + 0x3c2], eax
lea eax, [ebp - 0xa4c]
push 0x4991d4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov ecx, dword [0x4a3b14]
add esp, 0xc
push dword [ebp - 0xa4c]
push 7
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x82]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
mov dword [edi + 0x436], eax
lea eax, [ebp - 0xa4c]
push 0x4991d4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov ecx, dword [0x4a3b14]
add esp, 0xc
push dword [ebp - 0xa4c]
push 9
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x8e]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
mov dword [edi + 0x3c6], eax
lea eax, [ebp - 0xa4c]
push 0x4991d4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov ecx, dword [0x4a3b14]
add esp, 0xc
push dword [ebp - 0xa4c]
push 8
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x6a]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
mov dword [edi + 0x43a], eax
lea eax, [ebp - 0xa4c]
push 0x4991d4
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov ecx, dword [0x4a3b14]
add esp, 0xc
push dword [ebp - 0xa4c]
push 0xa
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x20]
push dword [eax + 0xa2]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0xa54], eax
lea ecx, [ebp - 0xa54]
lea eax, [ebp - 0xa78]
mov dword [ebp - 0xa50], 0
push eax
call fcn.0040cdc0
test eax, eax
je 0x408584
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x38], eax
jmp 0x40858b
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0xaa0]
push eax
lea ecx, [ebp - 0xa54]
call fcn.0040cdc0
test eax, eax
je 0x4085aa
mov eax, dword [eax + 0x10]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x4085b1
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0xac4]
push eax
lea ecx, [ebp - 0xa54]
call fcn.0040cdc0
test eax, eax
je 0x4085d1
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x4085d3
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__7]
mov ecx, dword [0x4a3b14]
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 - 0x20]
add eax, eax
push 0x100
mov dword [ebp - 0x18], eax
add esi, 0xa6
lea eax, [ebp - 0x248]
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 - 0x248]
push 0x498ff8
push eax
call fcn.0040cae0
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0x24
test eax, eax
jne 0x408665
mov dword [edi + 0x3ca], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4a3b08], 0
mov esi, dword [ebp + 0x10]
mov dword [edi + 0x462], eax
je 0x408b20
mov ecx, dword [0x4a3b14]
push 0x4991d0
push 4
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x400
lea eax, [ebp - 0x648]
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 - 0xa74], 0
lea eax, [ebp - 0x648]
mov dword [ebp - 0xa5b], 0
xorps xmm0, xmm0
mov byte [ebp - 0xa57], 0
movups xmmword [ebp - 0xa73], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0xa63], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0xa48]
push 0x498ba8
push eax
call fcn.0040cb00
push dword [edi + 4]
lea eax, [ebp - 0xa74]
push 0x498a6c
push eax
call fcn.0040cb20
add esp, 0x18
lea eax, [ebp - 0xa48]
push eax
push 0
lea eax, [ebp - 0xa74]
push eax
push 0x498c68
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
lea ecx, [edx - 1]
cmp ecx, 0xc8
ja 0x408b20
mov ecx, dword [edi + 0x4e2]
cmp ecx, dword [0x4a2724]
jb 0x40877e
mov ecx, dword [edi + 0x4e6]
cmp ecx, 3
je 0x4087d4
cmp ecx, 4
je 0x4087d4
mov ecx, dword [edi + 0x4e2]
cmp ecx, 0xf
jb 0x408793
mov ecx, dword [edi + 0x4e6]
cmp ecx, 3
je 0x408793
cmp ecx, 4
jne 0x4087d4
cmp edx, 0x5a
jb 0x4087d4
cmp dword [edi + 0x3c2], 0x12c
jb 0x4087d4
mov ecx, dword [edi + 0x436]
cmp ecx, 1
jb 0x4087c0
cmp ecx, 0x1f4
jae 0x4087c0
cmp dword [0x4a3a20], 0
jne 0x4087d4
cmp dword [edi + 0x43a], 0x4e20
jb 0x4087d4
test eax, eax
je 0x408b20
push 0x100
lea eax, [ebp - 0x148]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
push dword [edi + 0x43a]
push dword [edi + 0x436]
push dword [edi + 0x3c2]
push eax
lea eax, [ebp - 0x148]
push 0x499014
push eax
call fcn.0040cae0
push 0x400
lea eax, [ebp - 0xa48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x648]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x40
mov byte [ebp - 0xa74], 0
lea eax, [ebp - 0xa48]
mov dword [ebp - 0xa5b], 0
xorps xmm0, xmm0
mov byte [ebp - 0xa57], 0
movups xmmword [ebp - 0xa73], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0xa63], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x648]
push 0x498ba8
push eax
call fcn.0040cb00
push dword [edi + 4]
lea eax, [ebp - 0xa74]
push 0x498a6c
push eax
call fcn.0040cb20
mov eax, dword [ebp - 0x20]
add esp, 0x18
push dword [eax + 0x23]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [0x4a3b14]
mov dword [edi + 0x3ae], 2
cmp eax, dword [edi + 4]
je 0x408921
push str.penc
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea eax, [ebp - 0x648]
mov dword [edi + 0x4e2], 0
push eax
push 0x49904c
lea eax, [ebp - 0xa74]
push eax
push 0x498c68
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.00415290
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408ea2
mov dword [eax], 7
jmp 0x408ea2
push 0x499050
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x408afb
cmp dword [ebp - 0x30], 0x5a
jae 0x408982
lea eax, [ebp - 0x648]
push eax
push 0x499064
lea eax, [ebp - 0xa74]
push eax
push 0x498c68
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408b0d
mov dword [eax], 2
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.00415290
jmp 0x408ea2
cmp dword [edi + 0x3c2], 0x12c
jae 0x4089d0
lea eax, [ebp - 0x648]
push eax
push 0x498f84
lea eax, [ebp - 0xa74]
push eax
push 0x498c68
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408b0d
mov dword [eax], 4
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.00415290
jmp 0x408ea2
cmp dword [edi + 0x43a], 0x4e20
jae 0x408a2c
lea eax, [ebp - 0x648]
push eax
push 0x499068
lea eax, [ebp - 0xa74]
push eax
push 0x498c68
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.00415290
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408b0d
mov dword [eax], 5
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.00415290
jmp 0x408ea2
cmp dword [0x4a3a20], 0
je 0x408a97
mov eax, dword [edi + 0x436]
cmp eax, 1
jb 0x408a97
cmp eax, 0x1f4
jae 0x408a97
lea eax, [ebp - 0x648]
push eax
push 0x49906c
lea eax, [ebp - 0xa74]
push eax
push 0x498c68
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.00415290
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408b0d
mov dword [eax], 6
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.00415290
jmp 0x408ea2
mov eax, dword [edi + 0x4e2]
cmp eax, dword [0x4a2724]
jb 0x408b0d
lea eax, [ebp - 0x648]
mov dword [edi + 0x4e2], 0
push eax
push 0x49904c
lea eax, [ebp - 0xa74]
push eax
push 0x498c68
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.00415290
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408b0d
mov dword [eax], 8
lea edx, [ebp - 0x148]
mov ecx, dword [edi + 4]
call fcn.00415290
jmp 0x408ea2
cmp eax, 1
jne 0x408b0d
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x408b0d
mov dword [eax], 1
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x148]
call fcn.00415290
jmp 0x408ea2
mov ecx, dword [ebp - 0x20]
movzx eax, byte [ecx + 0x11]
add ecx, 0x152
mov dword [edi + 0x554], eax
test eax, eax
jne 0x408d4e
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 - 0x20]
movzx eax, word [eax + 0xa]
mov word [edi + 0x53e], ax
mov word [edi + 0x53a], ax
movzx eax, ax
test ax, ax
je 0x408d40
cwde
cmp eax, 0xffff
jge 0x408d40
cmp dword [0x4a3a1c], 0
je 0x408b8a
mov ecx, edi
call fcn.004073d0
mov ecx, dword [0x4a3b14]
push 0x4990a0
push 0x12
push esi
mov dword [edi + 0x48a], 1
mov dword [edi + 0x41a], 0
mov dword [edi + 0x49a], 1
mov dword [edi + 0x550], 1
mov dword [edi + 0x558], 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 + 0x3f2], eax
call fcn.00409a50
mov ecx, edi
call fcn.0040ba50
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
mov ecx, edi
mov word [ebp - 0x14], 0x12
call fcn.0040a920
mov ecx, edi
call fcn.0040a750
cmp dword [0x4a3b04], 0
je 0x408c1c
mov ecx, edi
call fcn.0040c0e0
call esi
mov dword [edi + 0x3ea], eax
call esi
cmp dword [0x4a3ad8], 0
mov dword [edi + 0x3da], eax
je 0x408c53
push 0
lea esi, [edi + 0x5a0]
mov ecx, edi
push esi
push 0
call fcn.0040a0d0
push 0
push esi
push 4
mov ecx, edi
call fcn.0040a0d0
cmp dword [0x4a3a18], 0
jne 0x408c65
cmp dword [0x4a3b08], 0
je 0x408c6f
sub esp, 8
mov ecx, edi
call fcn.0040a3d0
cmp dword [0x4a3a14], 0
je 0x408d24
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x80000
push eax
mov ecx, edi
mov word [ebp - 0x14], 0
call fcn.0040c2b0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x101
push eax
mov ecx, edi
mov word [ebp - 0x34], 0x7f00
call fcn.0040c2b0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x10000
push eax
mov ecx, edi
mov word [ebp - 0x2c], 0
call fcn.0040c2b0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x400001
push eax
mov ecx, edi
mov word [ebp - 0x24], 0
call fcn.0040c2b0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x101
push eax
mov ecx, edi
mov word [ebp - 0x1c], 0xf00
call fcn.0040c2b0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x101
push eax
mov ecx, edi
mov word [ebp - 0x3c], 0xe00
call fcn.0040c2b0
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.0040c2b0
cmp dword [0x4a3b08], 0
jne 0x408ea2
sub esp, 8
mov ecx, edi
call fcn.0040a2c0
jmp 0x408ea2
xor eax, eax
mov word [edi + 0x53e], ax
jmp 0x408ea2
cmp eax, 1
jne 0x408de0
inc dword [edi + 0x558]
cmp dword [edi + 0x558], 2
jae 0x408d82
push 0x499070
push esi
mov ecx, edi
mov dword [edi + 0x554], 0
call fcn.004060d0
jmp 0x408ea2
mov ecx, dword [0x4a3b14]
push 0x49907c
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [edi + 4]
mov edx, 0x499084
call fcn.00415290
cmp dword [0x4a3a1c], 0
je 0x408db3
mov ecx, edi
call fcn.004073d0
cmp dword [0x4a3b08], 0
je 0x408ea2
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x3ae], 2
test eax, eax
je 0x408ea2
mov dword [eax], 2
jmp 0x408ea2
cmp eax, 0xc
jne 0x408e1b
push 0x49908c
push ecx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov ecx, dword [0x4a3b14]
add esp, 8
push 0x499098
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edi + 4]
lea edx, [edx + 0x152]
call fcn.00415290
jmp 0x408db3
push ecx
lea ecx, [ebp - 0x18]
cmp eax, 5
jne 0x408e30
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
mov byte [ebp - 4], 3
jmp 0x408e67
cmp eax, 0x38
jne 0x408e5d
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
mov ecx, dword [0x4a3b14]
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0
push esi
mov ecx, edi
call fcn.00407930
jmp 0x408e99
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
mov byte [ebp - 4], 5
push dword [ebp - 0x18]
mov ecx, dword [0x4a3b14]
push 0x12
push esi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
cmp dword [0x4a3b08], 0
je 0x408e99
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x3ae], 2
test eax, eax
je 0x408e99
mov dword [eax], 2
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
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.0042a51d
mov esp, ebp
pop ebp
ret 0x10