Function at 0x50d690
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x724f78
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x738150]
movq xmm0, qword [str.Foxmail.Addins]
mov dword [ebp - 0x20], eax
mov ax, word [0x738154]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0xe
movq qword [ebp - 0x28], xmm0
mov word [ebp - 0x1c], ax
mov byte [ebp - 0x1a], 0
push 1
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push 0x400
push eax
call fcn.00555fc0
add esp, 4
lea ecx, [ebp - 0x10c]
push eax
call fcn.00552eb0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x50d74f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50d745
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50d98c
push edx
push ecx
call fcn.006f4b9f
add esp, 8
cmp dword [ebp + 0xc], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jne 0x50d941
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
jne 0x50d77f
mov dword [edi + 0x48], 2
jmp 0x50d941
test eax, eax
jne 0x50d86b
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xe2
push dword [edi + 4]
call ebx
push dword [edi + 0x5c]
push 0
push 0x172
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x66
lea ecx, [edi + 0x40]
call fcn.004d4560
call fcn.004d2dc0
mov ecx, eax
test ecx, ecx
je 0x50d991
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x74]
call fcn.0050c870
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.0051be40
push eax
lea ecx, [ebp - 0x64]
call fcn.004d4560
push 0xde
push dword [edi + 4]
call ebx
mov esi, dword [ebp - 0x64]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push dword [edi + 4]
mov dword [edi + 0x48], 1
call ebx
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp - 0x60]
cmp eax, 0xbc1
je 0x50d82e
cmp eax, 0xbc2
jne 0x50d83e
push 1
mov ecx, edi
call fcn.00510250
mov ecx, edi
call fcn.00510140
lea ecx, [ebp - 0x60]
call fcn.0051bb30
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50d941
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50d941
cmp eax, 1
jne 0x50d941
push 0xe2
push dword [edi + 4]
mov dword [edi + 0x48], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x172
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x54]
mov byte [edi + 0x47], 1
test eax, eax
je 0x50d919
cmp byte [edi + 0x378], 0
je 0x50d919
push 5
push dword [eax + 4]
call esi
mov eax, dword [edi + 0x54]
push dword [eax + 0x490]
call dword [sym.imp.USER32.dll_IsWindow]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
test eax, eax
je 0x50d8ed
mov eax, dword [edi + 0x54]
push 3
push 0
push 0
push 0
push 0
push 0
push dword [eax + 0x490]
call esi
mov eax, dword [edi + 0x54]
push 0x43
push 0
push 0
push 0
push 0
push 0
push dword [eax + 4]
call esi
mov eax, dword [edi + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [edi + 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi + 0x30]
push eax
lea eax, [edi + 0x34]
push eax
call fcn.0050b050
add esp, 8
test al, al
setne byte [ebp - 0x64]
mov ecx, dword [edi + 0x54]
push dword [ebp - 0x64]
call fcn.00500420
mov byte [edi + 0x378], 1
lea ecx, [ebp - 0x10c]
call fcn.00553780
lea eax, [ebp - 0xac]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0xac], vtable.std::ios_base.0
call fcn.006f3999
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 0x10
call fcn.006fb96e
push 0x80004005
call fcn.004cf5d0
int3