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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478984
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x483014]
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 0x45b080
cmp dword [ebp + 0xc], 0x1e
jl 0x45b080
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 + 4]
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__12]
add esp, 0x10
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x45ae33
push 0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [esi + 4]
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__12]
push dword [esi + 4]
lea eax, [ebp - 0x220]
push 0x47bd68
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
add esp, 0x1c
cmp dword [ebp - 0x224], 0
jbe 0x45b05c
add edi, 0x5a
push dword [edi - 0x3c]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x228], eax
cmp dword [esi + 0x32a], eax
jne 0x45af87
mov dword [esi + 0x5a2], eax
push dword [edi - 0x38]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x5a6], eax
movzx eax, word [edi - 0x32]
push eax
call ebx
mov word [esi + 0x5ac], ax
movzx eax, word [edi - 0x30]
push eax
call ebx
mov word [esi + 0x5ae], ax
movzx eax, word [edi - 0x2e]
push eax
call ebx
mov word [esi + 0x5b0], ax
movzx eax, word [edi - 0x2c]
push eax
call ebx
mov word [esi + 0x5b2], ax
movzx eax, word [edi - 0x2a]
push eax
call ebx
mov word [esi + 0x5b4], ax
push dword [edi - 0xa]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x5d4], eax
movzx eax, word [edi - 6]
push eax
call ebx
mov word [esi + 0x5d8], ax
movzx eax, word [edi - 4]
push eax
call ebx
mov word [esi + 0x5da], ax
movzx eax, word [edi - 2]
push eax
call ebx
mov word [esi + 0x5dc], ax
movzx eax, word [edi]
push eax
call ebx
mov word [esi + 0x5de], ax
movzx eax, word [esi + 0x5ac]
mov word [esi + 0x55e], ax
movzx eax, word [esi + 0x5ae]
mov word [esi + 0x560], ax
movzx eax, word [esi + 0x5b0]
mov word [esi + 0x562], ax
movzx eax, word [esi + 0x5b2]
mov word [esi + 0x564], ax
movzx eax, word [esi + 0x5b4]
mov word [esi + 0x566], ax
movzx eax, word [esi + 0x5de]
mov word [esi + 0x568], 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__12]
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x21c]
add esp, 0x34
call fcn.0045ab80
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 0x45ae77
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.0047724d
mov esp, ebp
pop ebp
ret 8