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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3154
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4c2014]
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 0x41b290
cmp dword [ebp + 0xc], 0x1e
jl 0x41b290
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 0x41b043
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 0x4b5b6c
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 0x41b26c
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 0x41b197
mov dword [esi + 0x7d5], eax
push dword [edi - 0x38]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x7d9], eax
movzx eax, word [edi - 0x32]
push eax
call ebx
mov word [esi + 0x7df], ax
movzx eax, word [edi - 0x30]
push eax
call ebx
mov word [esi + 0x7e1], ax
movzx eax, word [edi - 0x2e]
push eax
call ebx
mov word [esi + 0x7e3], ax
movzx eax, word [edi - 0x2c]
push eax
call ebx
mov word [esi + 0x7e5], ax
movzx eax, word [edi - 0x2a]
push eax
call ebx
mov word [esi + 0x7e7], ax
push dword [edi - 0xa]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x807], eax
movzx eax, word [edi - 6]
push eax
call ebx
mov word [esi + 0x80b], ax
movzx eax, word [edi - 4]
push eax
call ebx
mov word [esi + 0x80d], ax
movzx eax, word [edi - 2]
push eax
call ebx
mov word [esi + 0x80f], ax
movzx eax, word [edi]
push eax
call ebx
mov word [esi + 0x811], ax
movzx eax, word [esi + 0x7df]
mov word [esi + 0x681], ax
movzx eax, word [esi + 0x7e1]
mov word [esi + 0x683], ax
movzx eax, word [esi + 0x7e3]
mov word [esi + 0x685], ax
movzx eax, word [esi + 0x7e5]
mov word [esi + 0x687], ax
movzx eax, word [esi + 0x7e7]
mov word [esi + 0x689], ax
movzx eax, word [esi + 0x811]
mov word [esi + 0x68b], 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.0041ad90
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 0x41b087
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.0044612d
mov esp, ebp
pop ebp
ret 8