Function at 0x577f90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0xdc0838]
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x577fa9
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret 0x10
push ebp
push esi
push edi
call fcn.00472b90
mov dword [0xd16a10], eax
lea eax, [esp + 0x18]
push 8
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
mov ebp, 1
jne 0x577ffd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov ecx, eax
ja 0x577fe0
mov ecx, ebp
mov edx, dword [esp + 0x1c]
cmp ecx, edx
jae 0x577ff0
cmp eax, ebp
ja 0x577ff2
mov eax, ebp
jmp 0x577ff2
mov eax, edx
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, 0x1d9d63c
call fcn.0048dbb0
call fcn.004be140
mov ecx, dword [esp + 0x40]
push 0x65
push str.Crusader
push ecx
mov ecx, 0xba3900
call fcn.00466ab0
mov dword [0x1bd5b08], ebp
call fcn.00448850
mov edx, dword [0xba395c]
mov ecx, 0xba3900
push edx
push ebp
call fcn.00466b80
mov ecx, 0x150caa0
call fcn.00472c20
mov ecx, 0xfb7958
call fcn.0046f320
mov ecx, 0xba4420
call fcn.004e1ae0
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x72
push 0x69
push 0x68
mov ecx, 0x1bd5928
call fcn.00467750
push str.stronghold.uc
push 0x598b50
push 0x5e6bc0
mov ecx, 0x150ca40
mov dword [0xd17c9c], ebx
call fcn.004eaef0
push 0x204
push 0x11
mov ecx, 0x150ca40
call fcn.004eaf90
push 3
mov ecx, 0x150ca40
call fcn.004eaf30
push str.frontend_loading.tgx
mov ecx, 0xdc0838
mov dword [0xef6e6c], ebx
call fcn.00453f30
mov edx, dword [0x150ca44]
mov eax, dword [0xba3924]
mov ecx, dword [0xba3920]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov edi, dword [0xef6830]
mov dword [0x150ca54], eax
mov eax, dword [0xba393c]
mov dword [0x150ca50], ecx
sub eax, edi
mov edi, dword [0xef682c]
cdq
sub eax, edx
mov ecx, 0xdc0838
sar eax, 1
push eax
mov eax, dword [0xba3938]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call fcn.00454310
mov eax, dword [0x150ca54]
push 0x14
lea ecx, [eax + 0x248]
add eax, 0x236
push ecx
mov ecx, dword [0x150ca50]
lea edx, [ecx + 0x239]
push edx
add ecx, 0xe7
push eax
push ecx
mov ecx, 0x1d9d5f8
call fcn.00468af0
mov ax, word [0x8f1982]
push eax
mov eax, dword [0x150ca54]
lea ecx, [eax + 0x248]
add eax, 0x236
push ecx
mov ecx, dword [0x150ca50]
lea edx, [ecx + 0x239]
add ecx, 0xe7
push edx
push eax
push ecx
mov ecx, 0x1d9d5f8
call fcn.00468cd0
push ebx
mov ecx, 0xba3900
call fcn.00466cf0
push 8
mov ecx, 0x150caa0
call fcn.00474380
mov ecx, 0x150caa0
call fcn.00474520
push 0x68b9d8
mov ecx, 0xdc0838
call fcn.0044b770
mov ecx, 0xcbf3b0
call fcn.0046b6c0
push ebx
push 0x1a
mov ecx, 0xd16a10
mov dword [0xd16a50], 0x3e8
call fcn.0046d170
mov ecx, 0x1683fb8
mov eax, dword [esp + 0x48]
push eax
call fcn.00477e10
push ebx
mov ecx, 0xf017d0
call fcn.00449040
push ebp
mov ecx, 0x1765bd0
call fcn.0046dfa0
mov ecx, 0xfb7fc0
call fcn.004ecd00
push 0x190
mov ecx, 0xfb7fc0
mov dword [0x150c9c8], 0x190
call fcn.004ed360
mov ecx, 0x1cd0f70
mov dword [0x1cd0fdc], ebp
call fcn.00491000
push ebp
mov ecx, 0x1cd0f70
call fcn.00490c10
mov ecx, 0x1a464b0
call fcn.00423ae0
mov ecx, 0xfb7fc0
call fcn.004ecb60
push 0x64
push ebx
mov ecx, 0xc5d7b0
call fcn.004acf20
push 0x64
push ebx
mov ecx, 0xc5d7b0
call fcn.004acee0
mov ecx, 0x9a67e8
call fcn.004e06c0
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
mov dword [0xfb78d4], eax
mov dword [0xfb7dd8], eax
mov ecx, 0x11
xor eax, eax
mov edi, 0xba38b8
rep stosd dword es:[edi], eax
mov ecx, 0x1a464b0
call fcn.00423ab0
mov eax, dword [0xba3964]
mov dword [0xd17c9c], ebp
cmp eax, ebx
mov dword [0x1bd5b08], ebx
jne 0x57880d
mov edi, 3
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x5782f7
push ebx
push ebx
lea edx, [esp + 0x28]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x57880d
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x5787e5
cmp dword [0xba3984], ebx
jne 0x578307
cmp dword [0xba3988], ebx
jne 0x57831d
mov eax, dword [0x16845d0]
cmp eax, ebx
je 0x5787ad
cmp eax, 0x63
je 0x5787ad
call fcn.00578870
mov ecx, 0x150fd30
call fcn.004cbcb0
mov ecx, 0xba38a8
call fcn.0046ff90
mov ecx, 0xf01778
call fcn.004686a0
mov ecx, 0xd16a10
call fcn.0046d7b0
mov ecx, 0x150caa0
call fcn.00474520
mov ecx, 0x1683fb8
call fcn.004796e0
cmp dword [0xba3984], ebx
jne 0x57837d
cmp dword [0xba3988], ebx
je 0x57837d
mov ecx, 0x1bd5928
call fcn.00467a20
call fcn.00448850
mov eax, dword [0x176582c]
mov edx, dword [0xd16ac0]
push eax
mov ecx, 0x1683fb8
mov dword [0xd16ac4], edx
call fcn.00479150
mov ecx, 0x1683fb8
mov dword [0xd16ac0], eax
call fcn.00478f80
mov ecx, 0xd16a10
call fcn.0046d940
cmp dword [0xd16ac0], ebx
je 0x5783c1
call esi
mov dword [0xd16acc], eax
mov eax, dword [0xd16ac0]
mov dword [0xd16abc], ebx
cmp eax, ebx
jle 0x57841b
mov ecx, 0x1683fb8
call fcn.0047fca0
mov ecx, 0xd2c5c8
call fcn.00454880
mov ecx, 0x1683fb8
call fcn.004796e0
mov ecx, 0x1a46428
call fcn.004096f0
cmp dword [0x1684a54], ebx
jne 0x578415
mov eax, dword [0xd16abc]
mov ecx, dword [0xd16ac0]
inc eax
cmp eax, ecx
mov dword [0xd16abc], eax
jl 0x5783d0
cmp dword [0xd16ac0], ebx
je 0x578434
call esi
mov ecx, dword [0xd16acc]
xor edx, edx
sub eax, ecx
div dword [0xd16ac0]
mov dword [0xd16ac8], eax
mov ecx, 0xd16a10
call fcn.0046d980
test eax, eax
je 0x57844c
mov ecx, 0x1683fb8
call fcn.00479380
cmp dword [0xba3984], ebx
jne 0x578720
cmp dword [0xba3988], ebx
je 0x578720
mov ecx, 0xdc07b0
call fcn.00468750
mov ecx, 0xf016f8
call fcn.0049ebd0
cmp dword [0xf0176c], ebx
jne 0x57848a
mov ecx, 0xfb78d8
call fcn.0049ebd0
cmp dword [0xfb794c], ebx
jne 0x5784a2
cmp dword [0xf0176c], ebx
jne 0x5784a2
cmp dword [0xd16b68], ebx
je 0x5784aa
cmp dword [0x1a4645c], ebx
je 0x5784b5
mov ecx, dword [0x150ca44]
call fcn.004e9ec0
mov ecx, 0xfb7de0
call fcn.0050e3c0
mov ecx, 0xd16a10
call fcn.0046d980
test eax, eax
je 0x578537
mov eax, dword [0xd16a20]
cmp eax, 0x3c
je 0x5784dc
cmp eax, 0x3e
jne 0x5784f0
mov eax, dword [0xd16a1c]
mov dword [0xba3990], 2
cmp eax, 0x10
jne 0x5784f6
mov dword [0xba3990], ebp
mov ecx, 0x9a67e8
mov dword [0xd16ab4], ebp
call fcn.004d8360
call fcn.004a7560
mov ecx, dword [0x1bd593c]
mov edx, dword [0x1bd5938]
push ecx
push edx
mov ecx, 0x9a67e8
call fcn.004e0840
mov ecx, 0x1bd5928
call fcn.00467fb0
mov ecx, 0x1bd5928
call fcn.00468030
mov ecx, 0x1a46428
call fcn.004096f0
mov eax, dword [0xd16a78]
mov dword [0xd16b68], ebx
cmp eax, 4
je 0x578682
cmp dword [0xd16ad0], ebx
jne 0x578682
cmp dword [0x67429c], ebx
jne 0x578682
mov ecx, 0xd16a10
call fcn.0046d980
test eax, eax
je 0x578682
cmp dword [0x150ca58], ebx
jne 0x578682
cmp dword [0xd7dfdc], ebx
jne 0x578682
mov ecx, 0xd16a10
call fcn.0046d9a0
test eax, eax
jne 0x578682
mov eax, dword [0xd16a1c]
cmp eax, 0xc
jne 0x578601
cmp dword [0xd16a20], 0x3c
je 0x5786d6
mov eax, dword [0x150ca54]
mov ecx, dword [0x150ca50]
push 0x80
add eax, 0x1d0
push 0x80
add ecx, 0x298
push eax
push ecx
mov ecx, 0xc5d7b0
mov dword [0xc5d7b0], ebp
call fcn.004ac080
mov dword [0xba3980], 4
jmp 0x5786d6
cmp eax, 0xe
jne 0x57861e
mov eax, dword [0xd16a20]
cmp eax, 0x3c
je 0x5786d6
cmp eax, 0x3e
jne 0x578627
jmp 0x5786d6
cmp eax, 0x10
jne 0x5786d6
cmp dword [0x1a46478], ebx
jne 0x578669
cmp dword [0x1a4647c], ebx
jne 0x578669
cmp dword [0xd16b5c], ebx
jne 0x578669
mov eax, dword [0x1d9d648]
xor eax, ebp
mov dword [0x1d9d648], eax
je 0x5786d6
mov ecx, 0xc5d7b0
mov dword [0xc5d7b0], ebp
call fcn.004abf20
mov dword [0xba3980], edi
jmp 0x5786d6
push ebp
mov ecx, 0x1a46428
call fcn.004094c0
mov dword [0xba3980], edi
mov dword [0x1d9d648], ebx
jmp 0x5786d6
mov ecx, 0xd16a10
call fcn.0046d980
test eax, eax
je 0x57869a
mov dword [0xba3980], 2
push 2
mov ecx, 0x1a46428
call fcn.004094c0
call fcn.004e9a50
push ebp
mov ecx, 0x1a46428
call fcn.004094c0
mov esi, dword [0x150ca44]
push ebp
mov ecx, esi
call fcn.004e9cd0
mov ecx, esi
call fcn.004ea920
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, 3
mov ecx, dword [0x150ca44]
push edi
call fcn.004e9cd0
mov ecx, 0xfb78d8
call fcn.0049ee40
mov ecx, 0xf016f8
call fcn.0049ee40
push ebx
mov ecx, 0x1a46428
call fcn.004094c0
mov ecx, 0xdc0838
call fcn.004546f0
mov ecx, 0xf017d0
call fcn.00448fa0
push ebx
mov ecx, 0xba3900
call fcn.00466cf0
mov ecx, 0xba38a8
call fcn.0046ffb0
cmp dword [0xd17ef0], ebx
jne 0x578776
mov ecx, 0xd16a10
call fcn.0046dec0
test eax, eax
jne 0x578776
mov ecx, 0xd16a10
call fcn.0046d980
test eax, eax
je 0x578776
cmp dword [0x1d9d644], ebx
je 0x578785
call esi
mov edx, dword [0x1d9d644]
mov ecx, dword [0xd17f18]
sub eax, edx
mov dword [0x1d9d644], ebx
add ecx, eax
mov dword [0xd17f18], ecx
jmp 0x578785
cmp dword [0x1d9d644], ebx
jne 0x578785
call esi
mov dword [0x1d9d644], eax
cmp dword [0x1d9d640], ebx
je 0x5787e5
call esi
mov edx, dword [0x1d9d640]
mov ecx, dword [0xfb78d4]
sub eax, edx
mov dword [0x1d9d640], ebx
add ecx, eax
mov dword [0xfb78d4], ecx
jmp 0x5787e5
mov ecx, 0xf017d0
call fcn.00448fa0
mov ecx, 0x1683fb8
call fcn.004796e0
call dword [sym.imp.USER32.dll_WaitMessage]
cmp dword [0x1d9d640], ebx
jne 0x5787d6
call esi
mov dword [0x1d9d640], eax
cmp dword [0x1d9d644], ebx
jne 0x5787e5
call esi
mov dword [0x1d9d644], eax
cmp dword [0xba3964], ebp
jne 0x5782b3
mov edx, dword [0xba396c]
push ebx
push ebx
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0xba3964], ebx
jmp 0x5782b3
mov eax, dword [esp + 0x14]
pop edi
pop esi
cmp eax, ebp
pop ebp
jne 0x578823
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov ecx, 0x1683fb8
call fcn.00477ca0
mov ecx, 0x1d9d63c
call fcn.0048e030
call fcn.004be1f0
mov ecx, 0x150caa0
call fcn.00472e00
mov ecx, 0xba3900
call fcn.00466b70
cmp dword [0x16844cc], ebx
je 0x578865
push 0x1684270
call fcn.0057b807
add esp, 4
push ebx
call fcn.0057b732
nop
nop
nop
nop
nop