Function at 0x40f780
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0238
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x53f00c]
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 esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push 0x36
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push str.RCHAOZIP_Worker_064B6C3A_8E73_4F99_9A5D_E495B603D9EC
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00409680
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x84]
call fcn.00428920
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00409610
mov byte [ebp - 4], 2
cmp dword [ebp - 0x84], 0
je 0x40f821
cmp byte [ebp - 0x7f], 0
je 0x40f821
or esi, 0xffffffff
jmp 0x40ff7e
lea ecx, [ebp - 0x74]
call fcn.0042b390
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
sete byte [ebp - 0x78]
mov edx, 0x519da0
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.00426f80
mov edx, 0x519da0
mov ecx, esi
call fcn.00427010
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 9
push eax
mov edx, 0x20
mov ecx, esi
call fcn.00428c90
mov esi, dword [ebp - 0x6c]
add esp, 4
cmp esi, dword [ebp - 0x68]
je 0x40f907
push esi
lea ecx, [ebp - 0x28]
call fcn.00408f60
mov edx, 0x519da0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.00426f80
mov edx, 0x519da0
lea ecx, [ebp - 0x28]
call fcn.00427010
cmp dword [ebp - 0x18], 0
jne 0x40f8ef
push esi
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00410250
mov esi, dword [eax]
jmp 0x40f8f2
add esi, 0x18
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00409610
mov byte [ebp - 4], 9
cmp esi, dword [ebp - 0x68]
jne 0x40f8b1
mov byte [ebp - 4], 0xf
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0x11
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov esi, 7
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
cmp ecx, edx
je 0x40ff36
lea eax, [ebp - 0x40]
cmp eax, ecx
je 0x40f983
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x40f96b
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00409680
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x40f9bb
add ecx, 0x18
lea eax, [ebp - 0x58]
cmp eax, ecx
je 0x40f9bb
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x40f9af
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.00409680
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
cmp esi, 8
cmovae ecx, eax
cmp ebx, 0xb
jne 0x40f9f8
mov esi, ebx
mov edx, str._from_shell
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40f9f2
add ecx, 2
add edx, 2
sub esi, 1
jne 0x40f9d3
mov dword [edi + 8], 1
lea eax, [esi + 1]
jmp 0x40fa38
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
cmp esi, 8
lea ecx, [ebp - 0x40]
cmovae ecx, eax
cmp ebx, 0xd
jne 0x40fa2f
mov esi, ebx
mov edx, str._from_service
nop dword [eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40fa2f
add ecx, 2
add edx, 2
sub esi, 1
jne 0x40fa10
mov dword [edi + 8], 2
lea eax, [esi + 2]
jmp 0x40fa38
mov dword [edi + 8], 0
xor eax, eax
test eax, eax
jne 0x40fa44
lea esi, [eax - 3]
jmp 0x40ff3b
sub esp, 0xc
call fcn.004105f0
mov ecx, eax
call fcn.0040f5c0
test eax, eax
jns 0x40fa61
mov esi, 0xfffffffc
jmp 0x40ff3b
xorps xmm0, xmm0
mov dword [ebp - 0xe4], 0x519e8c
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov byte [ebp - 4], 0x2b
call fcn.004105f0
mov ebx, dword [0x542870]
mov esi, eax
add ebx, 0x10
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x60], ebx
push ebx
mov byte [ebp - 4], 0x2d
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x5c], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [esi + 0x34]
push 4
mov dword [ebp - 0x70], eax
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.004d2377
add esp, 0xc
test eax, eax
je 0x40fb16
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004d2377
add esp, 0xc
test eax, eax
je 0x40fb16
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x40fb07
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
mov eax, dword [esi + 4]
add eax, edx
je 0x40fb13
lea ecx, [ebp - 0xe4]
mov dword [eax], ecx
inc dword [esi + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebx
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 0x2b
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0x88], 0x519ebc
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xac], vtable.RC::RCHaoZipWorkerMainWindow.0
mov dword [ebp - 0x88], vtable.RC::RCHaoZipWorkerMainWindow.1.0
mov byte [ebp - 4], 0x30
lea eax, [ebp - 0x8c]
push dword [ebp - 0x74]
push eax
push 0x53f8b8
call fcn.004103d0
movzx esi, ax
add esp, 0xc
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x40fd91
call fcn.004cb1b2
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x40fd91
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004105f0
mov ebx, dword [0x542870]
mov edi, eax
add ebx, 0x10
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x60], ebx
push ebx
mov byte [ebp - 4], 0x33
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x38]
mov esi, eax
mov byte [ebp - 0x5c], 1
test eax, eax
je 0x40fc01
cmp dword [eax + 4], 0
jle 0x40fc01
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [edi + 0x38]
test esi, esi
je 0x40fc33
mov eax, dword [esi]
test eax, eax
je 0x40fc1a
push eax
call fcn.004d247b
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004c9ffc
add esp, 8
push ebx
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 0x30
mov esi, dword [edi + 0x34]
test esi, esi
je 0x40fc8e
mov eax, dword [esi]
test eax, eax
je 0x40fc65
push eax
call fcn.004d247b
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40fc7c
push eax
call fcn.004d247b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.004c9ffc
add esp, 8
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x40fcc3
cmp dword [esi], 0
je 0x40fcc3
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40fcad
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x40fca0
mov esi, dword [0x53faac]
mov ecx, dword [0x53fab0]
cmp esi, ecx
jae 0x40fced
mov eax, dword [esi]
test eax, eax
je 0x40fce6
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x53fab0]
add esi, 4
cmp esi, ecx
jb 0x40fcd3
mov ecx, edi
call fcn.0040cd20
xor esi, esi
mov byte [ebp - 4], 0x36
mov dword [ebp - 0xac], vtable.RC::RCHaoZipWorkerMainWindow.0
mov dword [ebp - 0x88], vtable.RC::RCHaoZipWorkerMainWindow.1.0
mov byte [ebp - 4], 0x3a
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40fd22
push eax
call fcn.004cb25e
mov byte [ebp - 4], 0x3b
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x40fd43
push eax
call fcn.004d247b
add esp, 4
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
test eax, eax
je 0x40fd74
push eax
call fcn.004d247b
add esp, 4
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov byte [ebp - 4], 0x12
jmp 0x40ff3b
push 0
push 0
push eax
call fcn.004cb2b4
test si, si
je 0x40fbbf
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x53fa7c
mov dword [ebp - 0xa0], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x53fa94]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa4]
push 0x53fa7c
mov dword [0x53fa94], eax
call ebx
mov eax, dword [0x53f8b0]
mov edx, dword [0x53f8a8]
sub eax, edx
mov ecx, dword [0x53f8a4]
push 0
push dword [0x541358]
push 0
push 0
push eax
mov eax, dword [0x53f8ac]
sub eax, ecx
push eax
push edx
push ecx
push 0x80000000
push 0
push esi
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x40fbbf
push 0
push dword [ebp - 0xa8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [edi + 0xc], 0
mov dword [edi + 0x14], esi
jne 0x40fe72
cmp dword [edi + 0x10], 0
mov byte [edi + 0xc], 1
jne 0x40fe72
push 0x64
call fcn.004c9ece
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0x31
mov ecx, eax
push dword [edi + 0x14]
call fcn.00402510
mov byte [ebp - 4], 0x30
mov ecx, eax
mov dword [edi + 0x10], eax
call fcn.004028b0
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
xor esi, esi
mov ebx, 1
nop
test ebx, ebx
je 0x40feb0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc8]
push eax
call edi
test eax, eax
jne 0x40feb0
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0xe4]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x40fe84
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x40fe80
test eax, eax
je 0x40fbbf
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0xe4]
call dword [eax]
test eax, eax
jne 0x40ff03
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0xc4]
cmp eax, 0x118
ja 0x40ff26
je 0x40fe80
cmp eax, 0xf
je 0x40fe80
cmp eax, 0xa0
jmp 0x40ff2b
cmp eax, 0x200
je 0x40fe80
jmp 0x40fe78
mov esi, 0xfffffffe
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x3c
call fcn.00409610
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x40
call fcn.00409610
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00409470
mov byte [ebp - 4], 7
cmp byte [ebp - 0x78], 0
je 0x40ff72
push dword [ebp - 0x7c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.0042b450
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.00428980
mov eax, esi
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.004c9ebd
mov esp, ebp
pop ebp
ret 8