Function at 0x4522d0
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e8
push ebx
push esi
push edi
mov ecx, 0xa
xor eax, eax
mov edi, 0x5202fc
rep stosd dword es:[edi], eax
mov ecx, 0x2032
mov edi, 0x5181c8
rep stosd dword es:[edi], eax
xor ebx, ebx
mov ecx, 0x528b78
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.0047f1a0
mov al, byte [0x52aaf8]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test al, al
je 0x452354
push 0x52aaf8
call esi
cmp eax, ebx
mov dword [0x517ff4], eax
jne 0x452347
mov byte [0x52aaf8], bl
jmp 0x452354
mov al, byte [0x52aaf8]
test al, al
jne 0x4523fc
lea eax, [ebp - 0x164]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x164]
push ecx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [ebp - 0x164]
push str.lang_eng.dll
lea eax, [ebp - 0x164]
push edx
push eax
call ebx
lea ecx, [ebp - 0x164]
push ecx
call esi
test eax, eax
mov dword [0x517ff4], eax
jne 0x4523fa
lea edx, [ebp - 0x164]
push edx
call edi
lea eax, [ebp - 0x164]
push str.lang_jpn.dll
lea ecx, [ebp - 0x164]
push eax
push ecx
call ebx
lea edx, [ebp - 0x164]
push edx
call esi
test eax, eax
mov dword [0x517ff4], eax
jne 0x4523fa
push eax
push str.ERROR
push str.Resource_DLL_load_error.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
xor ebx, ebx
call fcn.004495d0
mov ecx, 0x528b78
call fcn.0047f1a8
jmp 0x45241b
mov al, byte [0x528b94]
or edi, 0xffffffff
test al, al
mov dword [ebp - 4], edi
jne 0x452460
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push eax
push ecx
call fcn.004521e0
add esp, 8
test eax, eax
je 0x452460
mov edx, dword [0x517ff4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x517ff4]
mov esi, dword [ebp + 8]
push 0x64
push eax
mov dword [ebp - 0x44], 0x30
mov dword [ebp - 0x40], 0x102b
mov dword [ebp - 0x3c], 0x44b3a0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x24], eax
push ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], str.WinClass_nnnester
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x4524ea
mov edx, dword [0x517ff4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call sub.COMCTL32.dll_InitCommonControls
mov eax, dword [0x517ff4]
push 0x69
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ecx, dword [0x517ff4]
push ebx
push esi
push 0x68
push ecx
mov dword [0x517ef4], eax
mov dword [0x517ff8], esi
call dword [sym.imp.USER32.dll_LoadMenuA]
mov edx, dword [0x528cf0]
push eax
mov eax, dword [0x528cec]
push ebx
push ebx
push ebx
push edx
push eax
push 0xca0000
push str.NNNesterJ_0.22c
push str.WinClass_nnnester
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
cmp esi, ebx
jne 0x452568
mov ecx, dword [0x517ff4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x528bb4]
mov dword [0x517ff0], esi
cmp eax, ebx
je 0x45259e
mov edx, dword [0x517ff4]
push edx
push esi
call fcn.00476380
add esp, 8
push 8
push 0x9cf8
push esi
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x4525a8
call fcn.0044a420
call fcn.0044a5e0
call fcn.004499d0
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
lea ecx, [ebp - 0x2f4]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov edx, dword [ebp + 0x10]
mov dword [0x4a0c7c], edi
push edx
mov dword [0x4a0c80], edi
mov byte [0x5167f3], 0
mov byte [0x5167f5], 0
mov dword [ebp - 4], 2
call fcn.0044b340
mov eax, dword [0x517ef4]
add esp, 4
lea ecx, [ebp - 0x60]
push eax
push esi
push ecx
call fcn.00451fd0
add esp, 0xc
mov ecx, 0x528b78
call fcn.0047f1b0
cmp dword [0x517ffc], ebx
je 0x45262e
call fcn.0044b2e0
call fcn.00438ff0
call fcn.00439520
call sub.WSOCK32.dll_WSACleanup
jmp 0x452650
mov edx, dword [0x517ff4]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
mov dword [ebp - 4], edi
call esi
mov eax, dword [0x518018]
cmp eax, ebx
je 0x45266e
push eax
call esi
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x452683
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0046f8e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x58]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10