Function at 0x402520
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x290
mov eax, dword [0x42b034]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
mov ebx, dword [esp + 0x298]
mov dword [esp + 4], ebx
call fcn.004047a0
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 1
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push 0xf0f0f0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x40], 0x30
mov dword [esp + 0x68], str.BrowserMainClass
mov dword [esp + 0x48], 0x402ac0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x54], ebx
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x4025eb
push 0x10
push 0x422680
push str.RegisterClassEx_failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.00408284
add esp, 0x290
ret 0x10
push 0
push ebx
push 0
push 0
push 0x258
push 0x3c0
push closesocket
push closesocket
push 0xcb0000
push str.BF1942_Server_List
push str.BrowserMainClass
push 0x300
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x42b8e0], eax
test eax, eax
jne 0x402659
push 0x10
push 0x422680
push str.CreateWindowEx_failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.00408284
add esp, 0x290
ret 0x10
push ebp
push esi
push edi
push 0
lea eax, [esp + 0xa8]
mov dword [esp + 0xa8], 0x1f8
push eax
push 0x1f8
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push 1
mov edi, eax
push edi
push 0x30
push dword [0x42b8e0]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x94]
push eax
push dword [0x42b8e0]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x9c]
sub ebx, dword [esp + 0x98]
sub ebp, dword [esp + 0x94]
push 1
push edi
push 0x30
push 0
push dword [esp + 0x20]
lea esi, [ebx - 0x28]
push 8
push dword [0x42b8e0]
lea eax, [ebp - 0x6e]
push 0x1e
push 0x64
push esi
push eax
push 0x50010001
push str.Close
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push edi
push 0x30
push 0
push dword [esp + 0x20]
push 0x68
push dword [0x42b8e0]
push 0x1e
push 0x64
push esi
push 0x2a8
push 0x50010001
push str.Refresh
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esp + 0x14]
lea esi, [ebx - 0x23]
push 0x66
push dword [0x42b8e0]
push 0x10
push 0xaa
push esi
push 0xa
push 0x50000100
push str.Select_a_server
push str.Static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x42b8ec], eax
push 0
push dword [esp + 0x14]
push 0x67
push dword [0x42b8e0]
push 0x10
push 0x12c
push esi
push 0xb4
push 0x50000000
push 0x422284
push str.Static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push edi
push 0x30
push dword [0x42b8ec]
mov dword [0x42b8f0], eax
call esi
push 1
push edi
push 0x30
push dword [0x42b8f0]
call esi
mov edi, dword [esp + 0x10]
lea eax, [ebx - 0x32]
push 0
push edi
push 0x64
push dword [0x42b8e0]
push eax
push 0x294
push 0xa
push 0xa
push 0x5080000d
push 0x422284
push str.SysListView32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x10031
push 0
push 0x1036
push eax
mov dword [0x42b8e4], eax
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 7
push eax
push 0
push 0x1061
push dword [0x42b8e4]
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x422284
mov dword [esp + 0x2c], 0x28
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 1
push eax
push 1
push 0x1061
push dword [0x42b8e4]
mov dword [esp + 0x30], str.Server_name
mov dword [esp + 0x2c], 0xd7
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 2
push eax
push 2
push 0x1061
push dword [0x42b8e4]
mov dword [esp + 0x30], str.Players
mov dword [esp + 0x2c], 0x32
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 3
push eax
push 3
mov dword [esp + 0x28], str.Ping
mov dword [esp + 0x24], 0x28
push 0x1061
push dword [0x42b8e4]
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 4
push eax
push 4
push 0x1061
push dword [0x42b8e4]
mov dword [esp + 0x30], 0x422798
mov dword [esp + 0x2c], 0x78
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 5
push eax
push 5
push 0x1061
push dword [0x42b8e4]
mov dword [esp + 0x30], str.Gamemode
mov dword [esp + 0x2c], 0x5a
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 6
push eax
push 6
push 0x1061
push dword [0x42b8e4]
mov dword [esp + 0x30], 0x4227b4
mov dword [esp + 0x2c], 0x55
call esi
push 0
push edi
push 0x65
push dword [0x42b8e0]
lea eax, [ebx - 0x3c]
push eax
lea eax, [ebp - 0x2b2]
push eax
push 0xa
push 0x2a8
push 0x50800005
push 0x422284
push str.SysListView32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x31
push 0
push 0x1036
push eax
mov dword [0x42b8e8], eax
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0
push eax
push 0
push 0x1061
push dword [0x42b8e8]
mov dword [esp + 0x30], str.Player_name
mov dword [esp + 0x2c], 0x8c
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 1
push eax
push 1
push 0x1061
push dword [0x42b8e8]
mov dword [esp + 0x30], str.S_K_D
mov dword [esp + 0x2c], 0x3a
call esi
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 2
push eax
push 2
push 0x1061
push dword [0x42b8e8]
mov dword [esp + 0x30], str.Ping
mov dword [esp + 0x2c], 0x1e
call esi
push dword [esp + 0x2b0]
push dword [0x42b8e0]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00403e50
mov dword [0x42b8f4], eax
call fcn.00402210
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x78]
push 0
push 0
push dword [0x42b8e0]
push eax
call ebx
test eax, eax
je 0x402a9d
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
cmp eax, 0xffffffff
je 0x402a9d
lea eax, [esp + 0x78]
push eax
call esi
lea eax, [esp + 0x78]
push eax
call edi
push 0
push 0
push dword [0x42b8e0]
lea eax, [esp + 0x84]
push eax
call ebx
test eax, eax
jne 0x402a72
mov ecx, dword [esp + 0x29c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408284
add esp, 0x290
ret 0x10