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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f8c4
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4be014]
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 0x418af0
cmp dword [ebp + 0xc], 0x1e
jl 0x418af0
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 0x4188a3
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 0x4b2b5c
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 0x418acc
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 0x4189f7
mov dword [esi + 0x7d0], eax
push dword [edi - 0x38]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x7d4], eax
movzx eax, word [edi - 0x32]
push eax
call ebx
mov word [esi + 0x7da], ax
movzx eax, word [edi - 0x30]
push eax
call ebx
mov word [esi + 0x7dc], ax
movzx eax, word [edi - 0x2e]
push eax
call ebx
mov word [esi + 0x7de], ax
movzx eax, word [edi - 0x2c]
push eax
call ebx
mov word [esi + 0x7e0], ax
movzx eax, word [edi - 0x2a]
push eax
call ebx
mov word [esi + 0x7e2], ax
push dword [edi - 0xa]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x802], eax
movzx eax, word [edi - 6]
push eax
call ebx
mov word [esi + 0x806], ax
movzx eax, word [edi - 4]
push eax
call ebx
mov word [esi + 0x808], ax
movzx eax, word [edi - 2]
push eax
call ebx
mov word [esi + 0x80a], ax
movzx eax, word [edi]
push eax
call ebx
mov word [esi + 0x80c], ax
movzx eax, word [esi + 0x7da]
mov word [esi + 0x67c], ax
movzx eax, word [esi + 0x7dc]
mov word [esi + 0x67e], ax
movzx eax, word [esi + 0x7de]
mov word [esi + 0x680], 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 + 0x80c]
mov word [esi + 0x686], 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.004185f0
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 0x4188e7
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.004429bd
mov esp, ebp
pop ebp
ret 8