Function at 0x1000d990
Capabilities:
Check if file exists
Get file attributes
Get local ipv4 addresses
Get socket information
Print debug messages
Read .ini file

Disassembly:
sub esp, 0x500
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
push eax
mov byte [esp + 0x28], 0x66
mov byte [esp + 0x12a], 0
mov dword [esp + 0x4c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x514]
lea ecx, [esp + 0x410]
push 0x100
push ecx
push edx
call fcn.1000d790
mov ebx, dword [esp + 0x524]
xor eax, eax
mov dword [esp + 0x20], eax
add esp, 0xc
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xa8]
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x410]
mov dword [esp + 0xf0], ecx
mov ecx, 0xc
lea edi, [esp + 0xf4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.1000d630
mov dword [esp + 0xe4], eax
call fcn.1000d700
mov edx, dword [esp + 0x51c]
mov byte [esp + 0x126], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30c]
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x524]
lea eax, [esp + 0x310]
push eax
push ecx
mov dword [esp + 0x134], edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x208]
rep stosd dword es:[edi], eax
cmp byte [0x1001e313], 4
jne 0x1000dad2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30c]
lea edx, [esp + 0x30c]
rep stosd dword es:[edi], eax
push edx
call fcn.1000d860
add esp, 4
lea eax, [esp + 0x30c]
lea ecx, [esp + 0x208]
push eax
push str._s_lang.ini
push ecx
jmp 0x1000dae7
lea edx, [esp + 0x30c]
lea eax, [esp + 0x208]
push edx
push str._s_lang.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0xffffffff
jne 0x1000db28
xor edx, edx
mov dword [esp + 0x25], edx
mov dword [esp + 0x29], edx
mov dword [esp + 0x2d], edx
mov dword [esp + 0x31], edx
mov dword [esp + 0x35], edx
mov dword [esp + 0x3c], edx
jmp 0x1000dbd6
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x140]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x208]
lea ecx, [esp + 0x140]
push eax
push 0x64
push ecx
push 0x1001e08c
push str.name
push str.user
call ebp
lea edx, [esp + 0x140]
push edx
call fcn.1000cfe0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x25]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x140]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x140]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x208]
push ecx
push 0x64
push edx
push 0x1001e08c
push str.icon
push str.user
call ebp
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x3c], eax
call fcn.10005b30
mov dword [esp + 0xe8], eax
call fcn.1000d530
mov dword [esp + 0xec], eax
mov edi, str.3.4.0.0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x19
lea edi, [esp + 0x1a4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x208]
push ecx
push 0x14
push edx
push 0x1001e08c
push str.Remark
push str.user
call ebp
lea edi, [esp + 0x1a4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [esp + 0x24]
push 0x11c
push edx
mov ecx, ebx
call fcn.10003830
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret