Function at 0x41a6e0
Capabilities:
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3304
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4c3014]
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 esi, ecx
mov edi, dword [ebp + 8]
cmp byte [edi + 2], 0
jne 0x41aa20
cmp dword [ebp + 0xc], 0x1e
jl 0x41aa20
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
movzx eax, word [edi + 0x16]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push eax
call ebx
movzx eax, ax
push 0x200
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0
push 0
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push str._sGzxItem
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
add esp, 0x10
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x41a7d3
push 0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [esi + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push str._sGzxItem_u.ini
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
push dword [esi + 8]
lea eax, [ebp - 0x220]
push 0x4b6b7c
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__9]
add esp, 0x1c
cmp dword [ebp - 0x224], 0
jbe 0x41a9fc
add edi, 0x5a
push dword [edi - 0x3c]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x228], eax
cmp dword [esi + 0x346], eax
jne 0x41a927
mov dword [esi + 0x7d6], eax
push dword [edi - 0x38]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x7da], eax
movzx eax, word [edi - 0x32]
push eax
call ebx
mov word [esi + 0x7e0], ax
movzx eax, word [edi - 0x30]
push eax
call ebx
mov word [esi + 0x7e2], ax
movzx eax, word [edi - 0x2e]
push eax
call ebx
mov word [esi + 0x7e4], ax
movzx eax, word [edi - 0x2c]
push eax
call ebx
mov word [esi + 0x7e6], ax
movzx eax, word [edi - 0x2a]
push eax
call ebx
mov word [esi + 0x7e8], ax
push dword [edi - 0xa]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x808], eax
movzx eax, word [edi - 6]
push eax
call ebx
mov word [esi + 0x80c], ax
movzx eax, word [edi - 4]
push eax
call ebx
mov word [esi + 0x80e], ax
movzx eax, word [edi - 2]
push eax
call ebx
mov word [esi + 0x810], ax
movzx eax, word [edi]
push eax
call ebx
mov word [esi + 0x812], ax
movzx eax, word [esi + 0x7e0]
mov word [esi + 0x682], ax
movzx eax, word [esi + 0x7e2]
mov word [esi + 0x684], ax
movzx eax, word [esi + 0x7e4]
mov word [esi + 0x686], ax
movzx eax, word [esi + 0x7e6]
mov word [esi + 0x688], ax
movzx eax, word [esi + 0x7e8]
mov word [esi + 0x68a], ax
movzx eax, word [esi + 0x812]
mov word [esi + 0x68c], ax
movzx eax, word [edi]
push eax
call ebx
movzx eax, ax
push eax
movzx eax, word [edi - 2]
push eax
call ebx
movzx eax, ax
push eax
movzx eax, word [edi - 4]
push eax
call ebx
movzx eax, ax
push eax
movzx eax, word [edi - 6]
push eax
call ebx
movzx eax, ax
push eax
push dword [edi - 0xa]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
movzx eax, word [edi - 0x2a]
push eax
call ebx
movzx eax, ax
push eax
movzx eax, word [edi - 0x2c]
push eax
call ebx
movzx eax, ax
push eax
movzx eax, word [edi - 0x2e]
push eax
call ebx
movzx eax, ax
push eax
movzx eax, word [edi - 0x30]
push eax
call ebx
movzx eax, ax
push eax
movzx eax, word [edi - 0x32]
push eax
call ebx
movzx eax, ax
push eax
push dword [edi - 0x38]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
lea eax, [ebp - 0x218]
push str._d_d_d_d_d_d_d_d_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 edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x21c]
add esp, 0x34
call fcn.0041a520
push dword [ebp - 0x214]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
push str.Item
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x21c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
add edi, 0x55
sub dword [ebp - 0x224], 1
jne 0x41a817
lea ecx, [ebp - 0x218]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
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.0044632d
mov esp, ebp
pop ebp
ret 8