Function at 0x4012f0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439643
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x44a6a0]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
push edi
mov eax, dword [0x44a6a0]
xor eax, esp
push eax
lea eax, [esp + 0x330]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x50], esi
call fcn.0041067d
mov eax, dword [esi + 0x20]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.004138f0
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4013f9
call fcn.004139a7
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401374
push 0x80004005
call fcn.004046c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
push 0x65
mov dword [esp + 0x33c], ebx
call fcn.00411caf
cmp eax, ebx
je 0x4013a6
push 0x65
push eax
lea ecx, [esp + 0x38]
call fcn.004048e0
mov edi, dword [esp + 0x30]
cmp dword [edi - 0xc], ebx
je 0x4013d2
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push ebx
push ebx
push 0x800
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
push edi
push 0x10
push ebx
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [edi - 0x10]
mov dword [esp + 0x338], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4013f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [esi + 0x74]
mov edx, dword [esi + 0x20]
push eax
push ebx
push 0x80
push edx
call edi
lea eax, [esp + 0x8c]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x103
lea ecx, [esp + 0x221]
push ebx
push ecx
mov byte [esp + 0x228], bl
call fcn.00424f30
add esp, 0xc
push 0x104
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x21c]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401480
sub eax, esi
push eax
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404b60
lea ecx, [esp + 0x14]
push ecx
mov edi, 0x440640
lea esi, [esp + 0x38]
mov dword [esp + 0x33c], 1
call fcn.004039c0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x44ba14
mov byte [esp + 0x344], 2
call fcn.00404550
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x4014ec
mov edx, dword [esp + 0x38]
push edx
call fcn.004072b4
add esp, 4
mov edi, 0xf
mov dword [esp + 0x338], 0xffffffff
cmp dword [esp + 0x2c], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x40151b
mov eax, dword [esp + 0x18]
push eax
call fcn.004072b4
add esp, 4
lea eax, [esp + 0x21c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401531
sub eax, edx
push eax
lea ecx, [esp + 0x220]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404b60
lea edx, [esp + 0x14]
push edx
mov edi, str.ResMs_
lea esi, [esp + 0x38]
mov dword [esp + 0x33c], 3
call fcn.004039c0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x44b9c0
mov byte [esp + 0x344], 4
call fcn.00404550
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x40159d
mov eax, dword [esp + 0x38]
push eax
call fcn.004072b4
add esp, 4
mov edi, 0xf
mov dword [esp + 0x338], 0xffffffff
cmp dword [esp + 0x2c], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x4015cc
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004072b4
add esp, 4
lea eax, [esp + 0x21c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4015e2
sub eax, edx
push eax
lea edx, [esp + 0x220]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404b60
lea eax, [esp + 0x14]
push eax
mov edi, str.ResBack_
lea esi, [esp + 0x38]
mov dword [esp + 0x33c], 5
call fcn.004039c0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x44b9f8
mov byte [esp + 0x344], 6
call fcn.00404550
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x40164e
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004072b4
add esp, 4
mov edi, 0xf
mov dword [esp + 0x338], 0xffffffff
cmp dword [esp + 0x2c], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x40167d
mov edx, dword [esp + 0x18]
push edx
call fcn.004072b4
add esp, 4
lea eax, [esp + 0x21c]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401693
sub eax, edx
push eax
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x5c]
call fcn.00404b60
lea ecx, [esp + 0x54]
push ecx
mov edi, str.Update_
lea esi, [esp + 0x74]
mov dword [esp + 0x33c], 7
call fcn.004039c0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x44b9dc
mov byte [esp + 0x344], 8
call fcn.00404550
mov esi, 0x10
cmp dword [esp + 0x88], esi
jb 0x401702
mov edx, dword [esp + 0x74]
push edx
call fcn.004072b4
add esp, 4
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x40172b
mov eax, dword [esp + 0x58]
push eax
call fcn.004072b4
add esp, 4
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x20]
push ebx
push 0x64
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
mov ecx, dword [esp + 0x330]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.00422bc2
mov esp, ebp
pop ebp
ret