Function at 0x440c40
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
mov eax, dword [0x507b40]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov ecx, 0x50936c
push edi
mov edi, dword [esp + 0x3c]
push 0x4cb8a4
call fcn.004304e0
push str.blademistress.dyndns.org
push 0x509438
call fcn.0043e480
push esi
mov byte [0x50abf8], 0
mov byte [0x50abd4], 0
call fcn.00440680
push 0x2a7fc
call fcn.00498854
add esp, 0x10
test eax, eax
je 0x440ca8
mov ecx, eax
call fcn.0043b8d0
mov ecx, eax
jmp 0x440caa
xor ecx, ecx
mov eax, dword [0x4f0aac]
mov dword [0x509420], ecx
mov dword [ecx + 0x2a598], eax
mov ecx, dword [0x509420]
mov eax, dword [0x4f0ab0]
mov dword [ecx + 0x2a59c], eax
mov ecx, dword [0x509420]
push dword [0x5094bc]
push edi
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [0x509420]
push dword [0x5094bc]
push dword [ecx + 0x2a3cc]
push edi
call fcn.0043cc20
test al, al
je 0x4410c8
mov eax, dword [0x509420]
mov eax, dword [eax + 0x2a680]
mov dword [eax + 0xbc], 0x43960000
mov ecx, dword [0x509420]
mov ecx, dword [ecx + 0x2a680]
call fcn.0043bf30
mov ecx, dword [0x509420]
push dword [ecx + 0x2a3d8]
mov ecx, dword [ecx + 0x2a680]
call fcn.0043bbf0
mov eax, dword [0x509420]
push str.Blade_Mistress
push dword [eax + 0x2a3cc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x509420]
push dword [esp + 0x48]
push dword [eax + 0x2a3cc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x509420]
push dword [eax + 0x2a3cc]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x509420]
push dword [eax + 0x2a3cc]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [0x509420]
lea eax, [esp + 0x2c]
push 7
push eax
push 0
mov dword [esp + 0x38], 0x64726556
mov dword [esp + 0x3c], 0x616e61
call fcn.0043bfa0
mov ecx, dword [0x509420]
lea eax, [esp + 0x2c]
push 0xe
push eax
push 1
call fcn.0043bfa0
mov ecx, dword [0x509420]
lea eax, [esp + 0x2c]
push 0xa
push eax
push 2
call fcn.0043bfa0
push 0x1f8
call fcn.00498854
add esp, 4
test eax, eax
je 0x440df5
push str.FIRST_OPTION_MODE
push 0
mov ecx, eax
call fcn.00464730
jmp 0x440df7
xor eax, eax
push eax
mov ecx, 0x509410
mov dword [0x509408], eax
call fcn.00435050
mov ecx, dword [0x509408]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x20], xmm0
nop
push 1
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x440e8c
movups xmm0, xmmword [esp + 0x10]
mov eax, dword [esp + 0x28]
sub esp, 0x1c
mov ecx, esp
movups xmmword [ecx], xmm0
movq xmm0, qword [esp + 0x3c]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
mov ecx, dword [0x509420]
call fcn.0043d6e0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4410bd
cmp dword [0x509408], 0
je 0x4410bd
call ebx
sub eax, 0x19
cmp dword [0x509430], eax
jae 0x4410bd
call ebx
mov dword [0x509430], eax
mov eax, dword [0x509420]
mov ebp, dword [eax + 0x2a3cc]
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
jns 0x440fb4
cmp ebx, 0x88760868
jne 0x440edf
jmp 0x440fb6
cmp ebx, 0x88760869
jne 0x440fb6
mov edi, dword [0x509420]
mov esi, 0x2a630
mov ecx, dword [esi + edi]
test ecx, ecx
je 0x440f08
call fcn.00438fc0
mov edi, dword [0x509420]
add esi, 4
cmp esi, 0x2a680
jl 0x440ef6
mov edx, dword [edi + 0x2a3d8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x38]
lea eax, [edi + 0x2a398]
push eax
push edx
call ecx
test eax, eax
js 0x440fa5
push 0x4cb888
mov ecx, 0x50936c
call fcn.004304a0
mov eax, dword [0x509420]
mov esi, 0x2a630
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x440f56
call fcn.00439730
mov eax, dword [0x509420]
add esi, 4
cmp esi, 0x2a680
jl 0x440f45
mov eax, dword [eax + 0x2a3d8]
push 1
push 0x16
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov eax, dword [0x509420]
push 1
push 7
mov eax, dword [eax + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov ecx, dword [0x509408]
test ecx, ecx
je 0x440fa1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [0x509408]
xor ebx, ebx
jmp 0x440fbc
push 0
push 0
push 0x10
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x440fb6
xor ebx, ebx
mov ecx, dword [0x509408]
cmp dword [0x50942c], 0
jne 0x4410b7
test ebx, ebx
jne 0x4410b7
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [0x509408]
mov eax, dword [ecx + 0x108]
sub eax, 1
je 0x441044
sub eax, 1
jne 0x4410b7
mov ecx, 0x509410
call fcn.00434fe0
mov ecx, dword [0x509408]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [0x509408]
test ecx, ecx
je 0x441015
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [0x50940c]
test eax, eax
je 0x441029
push eax
mov ecx, 0x509410
call fcn.00435050
mov ecx, 0x509410
call fcn.00434fa0
test eax, eax
jne 0x44108d
push eax
push 0x4cb8f0
push str.No_game_mode_on_stack__expected_one_
jmp 0x44106b
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [0x50940c]
test eax, eax
je 0x44105f
push eax
mov ecx, 0x509410
call fcn.00435050
jmp 0x44108d
push 0
push str.Game_Failure
push str.No_new_game_mode__expected_one_
mov eax, dword [0x509420]
push dword [eax + 0x2a3cc]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x509420]
push dword [eax + 0x2a3cc]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, 0x509410
call fcn.00434fa0
mov ecx, eax
mov dword [0x509408], ecx
test ecx, ecx
je 0x4410b7
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [0x509408]
mov dword [eax + 0x108], 0
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
cmp dword [esp + 0x14], 0x12
jne 0x440e30
mov ecx, 0x509410
call fcn.00434fa0
mov ecx, eax
mov dword [0x509408], ecx
test ecx, ecx
je 0x44111d
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [0x509408]
test ecx, ecx
je 0x44111d
nop dword [eax]
mov ecx, 0x509410
call fcn.00434fe0
mov ecx, dword [0x509408]
test ecx, ecx
je 0x44110a
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, 0x509410
call fcn.00434fa0
mov dword [0x509408], eax
test eax, eax
jne 0x4410f0
mov ecx, dword [0x509420]
call fcn.0043e320
mov esi, dword [0x509420]
test esi, esi
je 0x441215
lea ecx, [esi + 0x2a6c0]
call fcn.00434cd0
mov eax, dword [esi + 0x2a6b4]
test eax, eax
je 0x44119c
mov ecx, dword [esi + 0x2a6bc]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x441174
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x441234
mov eax, edx
push ecx
push eax
call fcn.00498884
mov dword [esi + 0x2a6b4], 0
add esp, 8
mov dword [esi + 0x2a6b8], 0
mov dword [esi + 0x2a6bc], 0
mov edi, dword [esi + 0x2a6a8]
test edi, edi
je 0x441207
mov ecx, dword [esi + 0x2a6b0]
mov eax, 0x66666667
sub ecx, edi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
shl ecx, 2
cmp ecx, 0x1000
jb 0x4411df
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x441234
mov edi, edx
push ecx
push edi
call fcn.00498884
mov dword [esi + 0x2a6a8], 0
add esp, 8
mov dword [esi + 0x2a6ac], 0
mov dword [esi + 0x2a6b0], 0
push 0x2a7fc
push esi
call fcn.00498884
add esp, 8
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00498846
add esp, 0x28
ret 0x10
call fcn.004a9ef2
int3