Function at 0x470794
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470cfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4707e9
mov eax, dword [ebp - 4]
test byte [eax + 0x2f4], 4
je 0x4707e9
lea edx, [ebp - 8]
mov eax, dword [0x6f434c]
call fcn.00407008
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41a65c]
call fcn.0040e134
call fcn.00404700
mov eax, dword [0x6f5b84]
call fcn.00475314
mov eax, dword [ebp - 4]
or byte [eax + 0x2f4], 4
xor edx, edx
push ebp
push 0x470ce1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x470cc9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1a6], 0
je 0x470bc4
xor eax, eax
push ebp
push 0x47084c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffae
call fcn.00404128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470863
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 4
je 0x47088f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 6
jne 0x470946
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x470946
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x4708d3
mov eax, dword [0x6f5b84]
mov eax, dword [eax + 0x44]
call fcn.00453460
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4708b7
adc ebx, 0
mov eax, dword [0x6f5b84]
mov eax, dword [eax + 0x44]
call fcn.004534a4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x470903
adc eax, 0
jmp 0x470903
mov eax, dword [0x6f5b88]
call fcn.004720c0
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4708ec
adc ebx, 0
mov eax, dword [0x6f5b88]
call fcn.004720b4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x470903
adc eax, 0
test ebx, ebx
jge 0x470909
xor ebx, ebx
test eax, eax
jge 0x47090f
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
push edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
push edx
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
je 0x470ad0
mov eax, dword [ebp - 4]
call fcn.0046ebe8
jmp 0x470ad0
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x230]
mov edx, eax
add dl, 0xfa
sub dl, 2
jae 0x470a2b
mov eax, dword [0x6f5b84]
mov esi, dword [eax + 0x44]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x230], 7
jne 0x47098c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [0x469e58]
call fcn.004040b8
test al, al
je 0x47098c
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x4709b8
mov ebx, dword [esi + 0x48]
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4709a0
adc ebx, 0
add ebx, dword [esi + 0x40]
mov eax, dword [esi + 0x4c]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4709b3
adc eax, 0
add eax, dword [esi + 0x44]
jmp 0x4709e8
mov eax, dword [0x6f5b88]
call fcn.004720c0
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x4709d1
adc ebx, 0
mov eax, dword [0x6f5b88]
call fcn.004720b4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x4709e8
adc eax, 0
test ebx, ebx
jge 0x4709ee
xor ebx, ebx
test eax, eax
jge 0x4709f4
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
push edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
push edx
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x57], 0
je 0x470ad0
mov eax, dword [ebp - 4]
call fcn.0046ebe8
jmp 0x470ad0
cmp al, 5
jne 0x470ad0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x470a77
mov eax, dword [0x6f5b84]
mov eax, dword [eax + 0x44]
call fcn.00453460
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x470a5b
adc ebx, 0
mov eax, dword [0x6f5b84]
mov eax, dword [eax + 0x44]
call fcn.004534a4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x470aa7
adc eax, 0
jmp 0x470aa7
mov eax, dword [0x6f5b88]
call fcn.004720f0
mov ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x48]
sar ebx, 1
jns 0x470a90
adc ebx, 0
mov eax, dword [0x6f5b88]
call fcn.004720e4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
sar eax, 1
jns 0x470aa7
adc eax, 0
test ebx, ebx
jge 0x470aad
xor ebx, ebx
test eax, eax
jge 0x470ab3
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
push edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
push edx
mov ecx, eax
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x84]
mov eax, dword [ebp - 4]
mov byte [eax + 0x230], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x470b9f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22b], 2
jne 0x470b2c
push 0
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
push 0x223
mov eax, dword [0x6f5b84]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x254]
push eax
call sub.user32.dll_SendMessageA
push 3
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
call sub.user32.dll_ShowWindow
jmp 0x470b7d
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x22b]
mov eax, dword [eax*4 + 0x6ec098]
push eax
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
shl edx, 0x10
or eax, edx
push eax
push 0
push 5
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
push sub.user32.dll_DefMDIChildProcA
call sub.user32.dll_CallWindowProcA
mov eax, dword [ebp - 4]
call fcn.00453cbc
push 0
push 0
push 0x234
mov eax, dword [0x6f5b84]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 0x254]
push eax
call sub.user32.dll_SendMessageA
jmp 0x470cc9
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x22b]
mov eax, dword [eax*4 + 0x6ec098]
push eax
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
call sub.user32.dll_ShowWindow
jmp 0x470cc9
xor eax, eax
push ebp
push 0x470be8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov si, 0xffaf
call fcn.00404128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470bff
mov eax, dword [0x6f5b88]
mov eax, dword [eax + 0x6c]
cmp eax, dword [ebp - 4]
jne 0x470c16
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0046f940
mov eax, dword [ebp - 4]
cmp byte [eax + 0x22f], 1
jne 0x470c2f
mov eax, dword [ebp - 4]
call fcn.00457814
jmp 0x470cc9
mov eax, dword [ebp - 4]
test byte [eax + 0x2f4], 8
je 0x470c5a
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
call sub.user32.dll_SetWindowPos
jmp 0x470cc9
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0045a2f4
mov esi, eax
call sub.user32.dll_GetActiveWindow
cmp esi, eax
jne 0x470c90
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x470c90
mov eax, dword [ebp - 4]
call fcn.0045a2f4
call fcn.0046b540
mov ebx, eax
test ebx, ebx
je 0x470cb9
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
call sub.user32.dll_SetWindowPos
push ebx
call sub.user32.dll_SetActiveWindow
jmp 0x470cc9
push 0
mov eax, dword [ebp - 4]
call fcn.0045a2f4
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470ce8
mov eax, dword [ebp - 4]
and byte [eax + 0x2f4], 0xfb
ret