Function at 0x415920
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x38]
push eax
push str.OnMissionCompleted:_d
push 0x43bb00
call fcn.004042f0
mov al, byte [0x43d84c]
add esp, 0xc
test al, 2
je 0x415bf9
mov ecx, dword [esi + 0x5c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [0x43bc41]
test al, al
je 0x4159fe
push 0xffffffffffffffff
lea edx, [esp + 0x10]
push 0xab
push edx
call fcn.004249d0
mov ecx, dword [esi + 0x4c]
mov ebx, eax
lea edi, [esi + 0x4c]
add esp, 0xc
mov eax, dword [ebx]
cmp ecx, eax
je 0x4159c2
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x415998
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41599f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4159ad
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, edi
call fcn.00402510
jmp 0x4159c2
mov ecx, edi
call fcn.00402400
mov ebx, dword [ebx]
mov dword [edi], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0xc]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415be2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415be2
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
jmp 0x415be2
cmp dword [0x43d848], 5
jne 0x415a9a
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push 0x147
push eax
call fcn.004249d0
mov ecx, dword [esi + 0x4c]
mov ebx, eax
lea edi, [esi + 0x4c]
add esp, 0xc
mov eax, dword [ebx]
cmp ecx, eax
je 0x415a6b
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x415a41
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x415a48
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x415a56
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, edi
call fcn.00402510
jmp 0x415a6b
mov ecx, edi
call fcn.00402400
mov ebx, dword [ebx]
mov dword [edi], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x415a9a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415a9a
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
mov eax, dword [0x43d848]
cmp eax, 3
je 0x415aad
cmp eax, 7
jne 0x415b3c
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
push 0xa7
push ecx
call fcn.004249d0
mov ecx, dword [esi + 0x4c]
mov ebx, eax
lea edi, [esi + 0x4c]
add esp, 0xc
mov eax, dword [ebx]
cmp ecx, eax
je 0x415b0d
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x415ae3
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x415aea
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x415af8
mov edx, dword [eax - 8]
push eax
push edx
mov ecx, edi
call fcn.00402510
jmp 0x415b0d
mov ecx, edi
call fcn.00402400
mov ebx, dword [ebx]
mov dword [edi], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0xc]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415b3c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415b3c
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
cmp dword [0x43d848], 4
jne 0x415bd8
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push 0xa9
push eax
call fcn.004249d0
mov ecx, dword [esi + 0x4c]
mov ebx, eax
lea edi, [esi + 0x4c]
add esp, 0xc
mov eax, dword [ebx]
cmp ecx, eax
je 0x415ba9
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x415b7f
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x415b86
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x415b94
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, edi
call fcn.00402510
jmp 0x415ba9
mov ecx, edi
call fcn.00402400
mov ebx, dword [ebx]
mov dword [edi], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x415bd8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415bd8
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
push 0x1e
lea ecx, [esi + 0x60]
call fcn.00412d50
mov ecx, dword [esi + 0x4c]
lea edi, [esi + 0x60]
push ecx
mov ecx, edi
call fcn.004128d0
push 2
mov ecx, edi
call fcn.00412d20
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415dcd
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x415d86
mov eax, dword [esi + 0x5c]
push ebp
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x34]
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextA]
test eax, eax
je 0x415c7b
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push 0x66
push ecx
call fcn.004249d0
mov eax, dword [eax]
mov edx, dword [esi + 0x54]
add esp, 0xc
push eax
push edx
call ebp
mov eax, dword [esp + 0x10]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x415ca9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415ca9
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
jmp 0x415ca9
mov eax, dword [esi + 0x50]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x50]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esi + 4]
push 0x40a
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [esi + 0x30], 0x7d2
jne 0x415d4e
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push 0xc0
push eax
call fcn.004249d0
mov ecx, dword [esi + 0x4c]
mov ebx, eax
lea edi, [esi + 0x4c]
add esp, 0xc
mov eax, dword [ebx]
cmp ecx, eax
je 0x415d16
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x415cec
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x415cf3
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x415d01
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, edi
call fcn.00402510
jmp 0x415d16
mov ecx, edi
call fcn.00402400
mov ebx, dword [ebx]
mov dword [edi], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x415d45
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415d45
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
mov ecx, dword [edi]
mov edx, dword [esi + 0x54]
push ecx
push edx
call ebp
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 1
push 0x3f0
push 0x1410
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x40]
pop ebp
test eax, eax
je 0x415dcd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], 0
pop edi
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push ecx
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x3ea
push 0x1410
push eax
call ebx
mov edx, dword [esi + 4]
push edx
call edi
mov esi, eax
test esi, esi
je 0x415dcd
push 0x3ea
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x3ea
push 0x111
push esi
call ebx
pop edi
pop esi
pop ebx
pop ecx
ret