Function at 0x40fcd0
Capabilities:
Check for time delay via gettickcount
Create directory
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2765
mov eax, dword fs:[0]
push eax
sub esp, 0xe78
mov eax, dword [0x4c2014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0xe74]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xe84], edi
mov dword [ebp - 0xe70], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x33]
mov dword [ebp - 0x40], eax
cmp eax, dword [esi + 8]
jne 0x410f4b
lea ecx, [ebp - 0xe78]
mov byte [esi + 0x5df], 1
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [edi + 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 byte [ebp - 4], 2
push dword [eax]
mov ecx, dword [0x4c5140]
push 5
push dword [ebp + 0x10]
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 [edi + 0x5c]
call fcn.00428d90
mov edi, eax
lea eax, [ebp - 0xe74]
push edi
push 0x4b6db8
push eax
mov dword [ebp - 0x28], edi
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [0x4c5140]
push dword [ebp - 0xe74]
push 6
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [ebp - 0xe84]
mov dword [esi + 0x4c3], edi
mov eax, dword [eax + 0x60]
mov dword [esi + 0x43a], eax
cmp eax, 0x989680
ja 0x410f3f
push eax
lea eax, [ebp - 0xe74]
push 0x4b6db8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov edi, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [0x4c5140]
push dword [ebp - 0xe74]
push 7
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [ebp - 0xe84]
mov eax, dword [ecx + 0x90]
mov dword [esi + 0x4c7], eax
cmp eax, 0x989680
ja 0x410f3f
push eax
lea eax, [ebp - 0xe74]
push 0x4b6db8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4c5140]
add esp, 0xc
push dword [ebp - 0xe74]
push 9
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [ebp - 0xe84]
mov eax, dword [ecx + 0x9c]
mov dword [esi + 0x43e], eax
cmp eax, 0x989680
ja 0x410f3f
push eax
lea eax, [ebp - 0xe74]
push 0x4b6db8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4c5140]
add esp, 0xc
push dword [ebp - 0xe74]
push 8
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [ebp - 0xe84]
mov eax, dword [ecx + 0x78]
mov dword [esi + 0x4cb], eax
cmp eax, 0x5f5e100
ja 0x410f3f
push eax
lea eax, [ebp - 0xe74]
push 0x4b6db8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4c5140]
add esp, 0xc
push dword [ebp - 0xe74]
push 0xa
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [ebp - 0xe84]
mov dword [ebp - 0xe7c], 0
mov eax, dword [ecx + 0xb0]
lea ecx, [ebp - 0xe80]
mov dword [ebp - 0xe80], eax
call fcn.00420720
push eax
lea ecx, [ebp - 0xe80]
call fcn.004206e0
push eax
lea ecx, [ebp - 0xe80]
call fcn.00420690
push eax
lea eax, [ebp - 0xe74]
push 0x4b5ec8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4c5140]
add esp, 0x14
push dword [ebp - 0xe74]
push 0xd
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov eax, dword [esi + 8]
mov edi, dword [ebp - 0xe84]
add eax, eax
push 0x100
mov dword [ebp - 0x18], eax
add edi, 0xb4
lea eax, [ebp - 0x66c]
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 - 0x66c]
push 0x4b6718
push eax
call fcn.00420260
lea eax, [ebp - 0x66c]
push eax
push edi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0x24
test eax, eax
jne 0x40ffaa
mov dword [esi + 0x44a], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4c5124], 0
mov dword [esi + 0x510], eax
je 0x410428
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4c5140]
push 0x4b6db4
push 4
push eax
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x400
lea eax, [ebp - 0xe6c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0xa6c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov byte [ebp - 0x6c], 0
lea eax, [ebp - 0xe6c]
mov dword [ebp - 0x53], 0
xorps xmm0, xmm0
mov byte [ebp - 0x4f], 0
movups xmmword [ebp - 0x6b], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0x5b], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0xe6c]
push eax
lea eax, [ebp - 0xa6c]
push 0x4b5ef8
push eax
call fcn.00420240
push dword [esi + 8]
lea eax, [ebp - 0x6c]
push 0x4b5b64
push eax
call fcn.00420280
add esp, 0x18
lea eax, [ebp - 0xa6c]
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
push 0x4b608c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov eax, dword [ebp - 0x28]
lea ecx, [eax - 1]
cmp ecx, 0xc8
ja 0x410428
mov dl, byte [esi + 0x5c6]
movzx ecx, dl
cmp ecx, dword [0x4c318c]
jb 0x4100aa
mov cl, byte [esi + 0x5c7]
cmp cl, 3
je 0x4100ff
cmp cl, 4
je 0x4100ff
cmp dl, 0xf
jb 0x4100bf
mov cl, byte [esi + 0x5c7]
cmp cl, 3
je 0x4100bf
cmp cl, 4
jne 0x4100ff
cmp eax, 0x5a
jb 0x4100ff
cmp dword [esi + 0x43a], 0x12c
jb 0x4100ff
mov eax, dword [esi + 0x4c7]
cmp eax, 1
jb 0x4100eb
cmp eax, 0x1f4
jae 0x4100eb
cmp dword [0x4c4b80], 0
jne 0x4100ff
cmp dword [esi + 0x4cb], 0x4e20
jb 0x4100ff
test edi, edi
je 0x410428
push 0x100
lea eax, [ebp - 0x16c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
push dword [esi + 0x4cb]
lea eax, [ebp - 0x16c]
push dword [esi + 0x4c7]
push dword [esi + 0x43a]
push dword [ebp - 0x28]
push 0x4b6734
push eax
call fcn.00420260
push 0x400
lea eax, [ebp - 0xa6c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x56c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x40
mov byte [ebp - 0x6c], 0
lea eax, [ebp - 0xa6c]
mov dword [ebp - 0x53], 0
xorps xmm0, xmm0
mov byte [ebp - 0x4f], 0
movups xmmword [ebp - 0x6b], xmm0
push 0
push 0
push eax
push 0
movq qword [ebp - 0x5b], xmm0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0xa6c]
push eax
lea eax, [ebp - 0x56c]
push 0x4b5ef8
push eax
call fcn.00420240
push dword [esi + 8]
lea eax, [ebp - 0x6c]
push 0x4b5b64
push eax
call fcn.00420280
mov eax, dword [ebp - 0x40]
add esp, 0x18
mov ecx, dword [0x4c5140]
mov dword [esi + 0x416], 2
cmp eax, dword [esi + 8]
je 0x41022d
push str.penc
push 0x12
push dword [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
lea eax, [ebp - 0x56c]
mov byte [esi + 0x5c6], 0
push eax
push 0x4b676c
lea eax, [ebp - 0x6c]
push eax
push 0x4b608c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x16c]
call fcn.0042c1a0
mov eax, dword [ebp - 0xe70]
test eax, eax
je 0x410f3f
mov dword [eax], 7
jmp 0x410f3f
push 0x4b6770
push 0x12
push dword [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
test edi, edi
jne 0x410404
cmp dword [ebp - 0x28], 0x5a
jae 0x41028d
lea eax, [ebp - 0x56c]
push eax
push 0x4b6784
lea eax, [ebp - 0x6c]
push eax
push 0x4b608c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0xe70]
test eax, eax
je 0x410415
mov dword [eax], 2
lea edx, [ebp - 0x16c]
mov ecx, dword [esi + 8]
call fcn.0042c1a0
jmp 0x410f3f
cmp dword [esi + 0x43a], 0x12c
jae 0x4102db
lea eax, [ebp - 0x56c]
push eax
push 0x4b66a8
lea eax, [ebp - 0x6c]
push eax
push 0x4b608c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp - 0xe70]
test eax, eax
je 0x410415
mov dword [eax], 4
lea edx, [ebp - 0x16c]
mov ecx, dword [esi + 8]
call fcn.0042c1a0
jmp 0x410f3f
cmp dword [esi + 0x4cb], 0x4e20
jae 0x410337
lea eax, [ebp - 0x56c]
push eax
push 0x4b6788
lea eax, [ebp - 0x6c]
push eax
push 0x4b608c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x16c]
call fcn.0042c1a0
mov eax, dword [ebp - 0xe70]
test eax, eax
je 0x410415
mov dword [eax], 5
lea edx, [ebp - 0x16c]
mov ecx, dword [esi + 8]
call fcn.0042c1a0
jmp 0x410f3f
cmp dword [0x4c4b80], 0
je 0x4103a2
mov eax, dword [esi + 0x4c7]
cmp eax, 1
jb 0x4103a2
cmp eax, 0x1f4
jae 0x4103a2
lea eax, [ebp - 0x56c]
push eax
push 0x4b678c
lea eax, [ebp - 0x6c]
push eax
push 0x4b608c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x16c]
call fcn.0042c1a0
mov eax, dword [ebp - 0xe70]
test eax, eax
je 0x410415
mov dword [eax], 6
lea edx, [ebp - 0x16c]
mov ecx, dword [esi + 8]
call fcn.0042c1a0
jmp 0x410f3f
movzx eax, byte [esi + 0x5c6]
cmp eax, dword [0x4c318c]
jb 0x410415
lea eax, [ebp - 0x56c]
mov byte [esi + 0x5c6], 0
push eax
push 0x4b676c
lea eax, [ebp - 0x6c]
push eax
push 0x4b608c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x16c]
call fcn.0042c1a0
mov eax, dword [ebp - 0xe70]
test eax, eax
je 0x410415
mov dword [eax], 8
lea edx, [ebp - 0x16c]
mov ecx, dword [esi + 8]
call fcn.0042c1a0
jmp 0x410f3f
cmp edi, 1
jne 0x410415
mov eax, dword [ebp - 0xe70]
test eax, eax
je 0x410415
mov dword [eax], edi
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x16c]
call fcn.0042c1a0
jmp 0x410f3f
mov ecx, dword [ebp - 0xe84]
mov al, byte [ecx + 0x10]
lea edi, [ecx + 0x160]
mov ecx, dword [esi + 0x4c3]
mov byte [esi + 0x5f9], al
test ecx, ecx
je 0x410f3f
cmp dword [esi + 0x4c7], 0x2faf080
ja 0x410f3f
cmp dword [esi + 0x43a], 0x1c9c380
ja 0x410f3f
cmp dword [esi + 0x43e], 0xf4240
ja 0x410f3f
cmp dword [esi + 0x4cb], 0x2faf080
ja 0x410f3f
cmp ecx, 0xc9
ja 0x410f3f
test al, al
jne 0x410c08
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [0x4c50d4], 0
jne 0x4104c7
cmp dword [0x4c4b70], 0
je 0x410861
mov edi, dword [ebp - 0xe84]
add edi, 0x156
push dword [edi]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x18], eax
add edi, 4
je 0x410861
movzx ecx, word [edi]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
cmp ax, 0x19
jne 0x410861
inc dword [esi + 0x406]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
xor eax, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x18], eax
jbe 0x410954
add edi, 0xa
mov dword [ebp - 0x38], edi
movzx eax, word [edi - 0xa]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp ax, 0x19
jne 0x410723
push dword [edi - 8]
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, eax
mov eax, dword [ebp - 0x38]
push dword [eax - 4]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0xe70], eax
mov eax, dword [ebp - 0x38]
push dword [eax]
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [0x4c4b70], 0
je 0x4105c3
cmp byte [esi + 0x580], 0
jne 0x4105c3
cmp edi, 0x2a27
jne 0x41070a
cmp eax, 0xffffffff
je 0x41070a
push eax
lea eax, [ebp - 0xe78]
mov byte [esi + 0x580], 1
push 0x4b6db8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov edi, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [0x4c5140]
push dword [ebp - 0xe78]
push 0xc
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
jmp 0x410726
mov eax, dword [ebp - 0xe70]
cmp edi, 0x55dc
jne 0x4105d9
mov dword [esi + 0x366], eax
jmp 0x410617
cmp edi, 0x55e2
jne 0x4105e9
mov dword [esi + 0x36a], eax
jmp 0x410617
cmp edi, 0x55e8
jne 0x4105f9
mov dword [esi + 0x36e], eax
jmp 0x410617
cmp edi, 0x5600
jne 0x410609
mov dword [esi + 0x372], eax
jmp 0x410617
cmp edi, 0x560c
jne 0x410617
mov dword [esi + 0x376], eax
mov ecx, dword [esi + 0x42e]
test ecx, ecx
je 0x410631
cmp edi, dword [esi + 0x432]
jne 0x410631
cmp eax, ecx
jae 0x410922
cmp edi, 0x27df
je 0x4106bd
cmp edi, 0x3988
je 0x4106b5
cmp edi, 0x3987
je 0x41066d
cmp edi, 0x4981
je 0x410665
cmp edi, 0x615b
je 0x410665
cmp edi, 0x5da8
jne 0x4106c6
cmp edi, 0x3987
jne 0x410675
mov dword [esi + 0x4e3], eax
jmp 0x4106c3
cmp edi, 0x4981
jne 0x410685
mov dword [esi + 0x4e7], eax
jmp 0x4106c3
cmp edi, 0x615b
jne 0x410695
mov dword [esi + 0x4eb], eax
jmp 0x4106c3
cmp edi, 0x5da8
jne 0x4106a5
mov dword [esi + 0x4ef], eax
jmp 0x4106c3
cmp edi, 0x31b0
jne 0x4106c3
mov dword [esi + 0x4f3], eax
jmp 0x4106c3
mov dword [esi + 0x4df], eax
jmp 0x4106c3
mov dword [esi + 0x4db], eax
add dword [ebp - 0x20], eax
mov edx, edi
lea ecx, [ebp - 0x4c]
call fcn.0041ad90
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x38]
push dword [eax]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
mov eax, dword [ebp - 0xe70]
push eax
push edi
push dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
push str._s_d:_d:_d____
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
add esp, 0x18
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x38]
inc eax
add edi, 0x19
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], edi
cmp eax, dword [ebp - 0x18]
jb 0x410525
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
cmp dword [0x4c4b70], 0
jne 0x410854
push eax
lea eax, [ebp - 0xe78]
push 0x4b6db8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
mov ecx, dword [0x4c5140]
add esp, 0xc
push dword [ebp - 0xe78]
push 0xc
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0x200
lea eax, [ebp - 0x36c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xe70]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0
push 0
lea eax, [ebp - 0x36c]
mov byte [ebp - 4], 0xa
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi + 8]
mov edi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0xe70]
push str._sGzxItem
push eax
call edi
add esp, 0x10
push dword [ebp - 0xe70]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x4107e3
push 0
push dword [ebp - 0xe70]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [esi + 8]
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0xe70]
push str._sGzxItem_u.ini
push eax
call edi
push dword [esi + 8]
lea eax, [ebp - 0xe78]
push 0x4b5b6c
push eax
call edi
push dword [esi + 0x406]
lea eax, [ebp - 0x20]
push str.Item_d
push eax
call edi
add esp, 0x28
push dword [ebp - 0xe70]
push dword [ebp - 0x28]
push dword [ebp - 0xe78]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x20]
mov byte [esi + 0x55f], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xe70]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [0x4c50f4], 0
mov eax, dword [ebp - 0xe84]
movzx eax, word [eax + 0xa]
mov word [esi + 0x5ea], ax
mov word [esi + 0x5e6], ax
je 0x410969
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xb
mov ecx, dword [0x4c4b6c]
push eax
call dword [sym.imp.mfc140u.dll_CWnd::GetWindowTextW]
cmp dword [esi + 0x4cb], 0
jbe 0x41095c
push dword [ebp - 0x20]
mov edi, dword [esi + 0x4cb]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoll]
add esp, 4
cmp edi, eax
jb 0x41095c
mov eax, dword [esi + 0x43e]
cmp eax, 0x186a0
jae 0x41095c
test eax, eax
je 0x41095c
cmp edi, 0x7530
jae 0x41095c
cmp dword [0x4c5118], 0
je 0x410907
cmp byte [esi + 0x5fc], 0
je 0x410907
mov ecx, esi
call fcn.004146c0
mov ecx, esi
call fcn.004146c0
push 1
mov ecx, esi
mov dword [esi + 0x416], 1
call fcn.00413200
lea ecx, [ebp - 0x20]
jmp 0x410f39
cmp dword [0x4c5118], 0
je 0x410942
cmp byte [esi + 0x5fc], 0
je 0x410942
mov ecx, esi
call fcn.004146c0
mov ecx, esi
call fcn.004146c0
mov dword [esi + 0x416], 1
lea ecx, [ebp - 0x28]
jmp 0x410f39
mov edi, dword [ebp + 0x10]
jmp 0x410729
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
movzx eax, word [esi + 0x5ea]
test ax, ax
je 0x410bfa
cwde
cmp eax, 0xffff
jge 0x410bfa
cmp dword [0x4c4b7c], 0
je 0x410995
mov ecx, esi
call fcn.0040d920
mov ecx, dword [0x4c5140]
push 0x4b67f0
push 0x12
push dword [ebp + 0x10]
mov byte [esi + 0x54b], 1
mov dword [esi + 0x4a6], 0
mov byte [esi + 0x557], 1
mov byte [esi + 0x5f6], 1
mov byte [esi + 0x5fb], 0
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, esi
mov dword [esi + 0x476], eax
call fcn.00412e40
mov ecx, esi
call fcn.00419ef0
push ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 2
push eax
mov ecx, esi
mov word [ebp - 0x2c], 0x12
call fcn.00417300
mov ecx, esi
call fcn.00415e40
cmp dword [0x4c5124], 0
je 0x410a26
cmp dword [0x4c510c], 0
je 0x410a26
mov ecx, esi
call fcn.0041aaf0
call edi
mov dword [esi + 0x46e], eax
call edi
cmp dword [0x4c4c5c], 0
mov dword [esi + 0x45e], eax
je 0x410a58
push 0
lea edi, [esi + 0x60d]
mov ecx, esi
push edi
push 0
call fcn.00414e70
push 0
push edi
push 4
jmp 0x410a6c
cmp dword [0x4c50a0], 0
je 0x410a73
push 0
lea eax, [esi + 0x60d]
push eax
push 2
mov ecx, esi
call fcn.00414e70
cmp dword [0x4c4b68], 0
je 0x410a96
push ecx
push 0x4d2c
mov ecx, esi
call fcn.00415180
push ecx
push 0x487a
mov ecx, esi
call fcn.00415180
cmp dword [0x4c512c], 0
je 0x410aac
push ecx
push 0x2813
mov ecx, esi
call fcn.00415180
cmp dword [0x4c4b64], 0
jne 0x410abe
cmp dword [0x4c5124], 0
je 0x410acb
push ecx
push 0x2724
mov ecx, esi
call fcn.00415180
cmp dword [0x4c4b60], 0
je 0x410b80
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x80000
push eax
mov ecx, esi
mov word [ebp - 0x2c], 0
call fcn.0041b7c0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x101
push eax
mov ecx, esi
mov word [ebp - 0x14], 0x7f00
call fcn.0041b7c0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x10000
push eax
mov ecx, esi
mov word [ebp - 0x3c], 0
call fcn.0041b7c0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x400001
push eax
mov ecx, esi
mov word [ebp - 0x48], 0
call fcn.0041b7c0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x101
push eax
mov ecx, esi
mov word [ebp - 0x24], 0xf00
call fcn.0041b7c0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x101
push eax
mov ecx, esi
mov word [ebp - 0x1c], 0xe00
call fcn.0041b7c0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], reloc.WS2_32.dll_accept
push eax
mov ecx, esi
mov word [ebp - 0x34], 0
call fcn.0041b7c0
cmp dword [0x4c5138], 0
je 0x410b91
push ecx
mov ecx, esi
call fcn.00415320
cmp dword [0x4c5124], 0
jne 0x410ba4
sub esp, 8
mov ecx, esi
call fcn.00415070
cmp dword [0x4c5138], 0
je 0x410bbd
cmp dword [esi + 0x4c3], 8
jbe 0x410bbd
mov byte [esi + 0x562], 1
cmp dword [0x4c50f8], 0
je 0x410bda
cmp byte [esi + 0x563], 0
jne 0x410bda
push 1
push 2
mov ecx, esi
call fcn.00417110
cmp dword [0x4c50d4], 0
je 0x410f3f
mov ecx, esi
call fcn.0041acc0
mov ecx, esi
call fcn.0041b5e0
jmp 0x410f3f
xor eax, eax
mov word [esi + 0x5ea], ax
jmp 0x410f3f
cmp al, 1
jne 0x410e4f
inc byte [esi + 0x5fb]
cmp byte [esi + 0x5fb], 2
jae 0x410c3a
push 0x4b6790
push dword [ebp + 0x10]
mov ecx, esi
mov byte [esi + 0x5f9], 0
call fcn.0040c310
jmp 0x410f3f
mov edi, dword [ebp + 0x10]
mov ecx, dword [0x4c5140]
push 0x4b679c
push 0x12
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [esi + 8]
mov edx, 0x4b67a4
call fcn.0042c1a0
cmp dword [0x4c4b7c], 0
je 0x410c6e
mov ecx, esi
call fcn.0040d920
cmp dword [0x4c5124], 0
je 0x410c91
mov eax, dword [ebp - 0xe70]
mov dword [esi + 0x416], 2
test eax, eax
je 0x410c91
mov dword [eax], 2
cmp dword [0x4c50f4], 0
je 0x410cb0
push 0
push edi
mov ecx, esi
mov byte [esi + 0x5f9], 0
call fcn.0040c310
jmp 0x410f3f
cmp dword [0x4c4b78], 0
je 0x410f3f
push 0x100
lea eax, [ebp - 0x16c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov ecx, dword [0x4c4b74]
xorps xmm0, xmm0
push eax
mov byte [ebp - 0x44], 0
movq qword [ebp - 0x43], xmm0
mov byte [ebp - 0x3b], 0
call dword [sym.imp.mfc140u.dll_CWnd::GetWindowTextW]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x63
idiv ecx
lea eax, [ebp - 0x44]
push edx
push 0x4b5b60
push eax
call fcn.004202a0
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [eax - 0xc], 0
je 0x410db8
push 0x100
lea eax, [ebp - 0x26c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea eax, [ebp - 0x28]
mov ecx, esp
lea esi, [ebp - 0x26c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
mov ecx, esi
call fcn.0042c590
add esp, 4
mov edx, esi
mov al, byte [edx]
inc edx
test al, al
jne 0x410d61
lea edi, [ebp - 0x16c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410d71
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x410d90
lea edi, [ebp - 0x16c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410da0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 3
jmp 0x410de6
lea edx, [ebp - 0x44]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x410dc0
lea edi, [ebp - 0x16c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410dd0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 6
lea eax, [ebp - 0x16c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00425470
mov esi, dword [ebp - 0x30]
add esp, 4
mov eax, dword [ebp - 0xe84]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx eax, word [eax + 0xa]
mov word [esi + 0x5ea], ax
mov word [esi + 0x5e6], ax
mov byte [esi + 0x5f6], 1
mov byte [esi + 0x5f9], 0
call edi
mov dword [esi + 0x46e], eax
call edi
mov dword [esi + 0x45e], eax
mov ecx, esi
lea eax, [ebp - 0x16c]
push eax
call fcn.0041b6b0
lea ecx, [ebp - 0x28]
jmp 0x410f39
cmp al, 0xc
jne 0x410eb2
push 0x4b67ac
push edi
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov ecx, dword [0x4c5140]
add esp, 8
push 0x4b67b8
push 0x12
push dword [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
mov ecx, dword [esi + 8]
mov edx, edi
call fcn.0042c1a0
cmp dword [0x4c5124], 0
je 0x410f3f
mov eax, dword [ebp - 0xe70]
mov dword [esi + 0x416], 2
test eax, eax
je 0x410f3f
mov dword [eax], 2
jmp 0x410f3f
lea ecx, [ebp - 0x18]
push edi
cmp al, 5
jne 0x410ec6
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov byte [ebp - 4], 4
jmp 0x410eff
cmp al, 0x38
jne 0x410ef5
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 5
push dword [ebp - 0x18]
mov ecx, dword [0x4c5140]
push 0x12
push edi
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
push 0
push edi
mov ecx, esi
call fcn.0040de70
jmp 0x410f36
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
mov ecx, dword [0x4c5140]
push 0x12
push dword [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_CListCtrl::SetItemText]
cmp dword [0x4c5124], 0
je 0x410f36
mov eax, dword [ebp - 0xe70]
mov dword [esi + 0x416], 2
test eax, eax
je 0x410f36
mov dword [eax], 2
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xe78]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xe74]
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.0044612d
mov esp, ebp
pop ebp
ret 0x10