Function at 0x412d70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp dword [eax + 0x1c], 8
mov esi, ecx
jne 0x412f92
mov ecx, dword [eax + 0x18]
cmp ecx, dword [eax + 0x14]
je 0x412f92
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1032
mov dword [ebp - 8], ebx
push dword [esi + 0x24]
mov dword [ebp - 0xc], ebx
call edi
cmp eax, 1
jg 0x412f92
je 0x412e27
lea edi, [esi + 0x158]
mov ecx, edi
call fcn.0040184c
mov eax, dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f9
mov dword [ebp + 0xc], eax
push dword [esi + 4]
call edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push ebx
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e8
push dword [esi + 4]
call edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0x3e9
push dword [esi + 4]
call edi
push 0
push eax
call ebx
push 0x3fa
push dword [esi + 4]
call edi
push 0
push eax
call ebx
jmp 0x412f85
mov eax, dword [ebp + 0xc]
push 2
mov eax, dword [eax + 0xc]
push eax
push 0x102c
push dword [esi + 0x24]
call edi
cmp eax, 2
jne 0x412f85
push eax
push 0xffffffffffffffff
push 0x100c
push dword [esi + 0x24]
call edi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x1005
mov dword [ebp - 0x3c], ebx
push dword [esi + 0x24]
mov dword [ebp - 0x44], 4
call edi
mov eax, dword [ebp - 0x24]
lea edi, [eax + 0x30]
mov ecx, edi
call fcn.0040184c
mov eax, dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f9
mov dword [ebp + 0xc], eax
push dword [esi + 4]
call edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x4c]
cmp eax, ebx
je 0x412eb9
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x412eb9
push 5
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [ebp - 1], 0
and byte [ebp + 0xf], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0x41a3dc
mov ecx, dword [eax + 0x68]
push 0xf
call fcn.00402e2f
mov eax, dword [ebp - 0x24]
push 1
pop ecx
cmp dword [eax + 0x60], ecx
jne 0x412f27
mov eax, dword [eax + 0x68]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], cl
mov byte [ebp + 0xf], cl
mov eax, dword [eax + 0x68]
push 0x41d644
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], eax
call fcn.00404498
test al, al
jne 0x412f21
push 0x41d640
lea ecx, [ebp - 0x1c]
call fcn.00404498
test al, al
je 0x412f3c
and byte [ebp + 0xf], 0
jmp 0x412f3c
push 0x41d1a0
lea ecx, [ebp - 0x1c]
call fcn.00404498
test al, al
je 0x412f3c
mov byte [ebp + 0xf], 1
push 0x3e9
push dword [esi + 4]
call edi
xor ecx, ecx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [ebp + 0xf], cl
setne cl
push ecx
push eax
call ebx
push 0x3e8
push dword [esi + 4]
call edi
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
push ecx
push eax
call ebx
push 0x3fa
push dword [esi + 4]
call edi
push 1
push eax
call ebx
lea ecx, [ebp - 0x1c]
call fcn.004017a8
push dword [ebp - 8]
mov ecx, esi
push dword [ebp - 0xc]
call fcn.00413d91
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc