Function at 0x4108c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb8de
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x54e434]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push 0x33
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push str.RCPic_Worker_99EE513C_E14C_4E8E_8FE1_A29F75FC0228
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040ae30
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x8c]
call fcn.004151e0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410978
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41096e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112a5
push edx
push ecx
call fcn.004d1408
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x8c], eax
je 0x4109a8
cmp byte [ebp - 0x87], al
je 0x4109a8
or esi, 0xffffffff
jmp 0x411274
lea ecx, [ebp - 0x84]
call fcn.0041e710
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 7
call fcn.004c1700
push 0x529200
push esi
mov byte [ebp - 4], 8
call fcn.00412dd0
push 0x529200
push esi
call fcn.00412e70
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
push 0x20
push esi
call fcn.00415570
mov esi, dword [ebp - 0x70]
add esp, 0x1c
cmp esi, dword [ebp - 0x6c]
je 0x410bd9
add esi, 0x18
mov dword [ebp - 0x7c], esi
cmp dword [esi - 4], 8
lea edi, [esi - 0x18]
mov eax, dword [esi - 8]
mov edx, 0x7ffffffe
mov dword [ebp - 0x18], 0
mov ecx, edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x80], edi
jb 0x410a42
mov ecx, dword [edi]
mov dword [ebp - 0x80], ecx
cmp eax, 8
jae 0x410a5d
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x410ae5
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, edx
mov dword [ebp - 0x60], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x410a7b
or ecx, 0xffffffff
jmp 0x410a83
cmp ecx, 0x1000
jb 0x410aac
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004d12da
add esp, 4
test eax, eax
je 0x4112a5
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x410abf
test ecx, ecx
je 0x410abd
push ecx
call fcn.004d12da
add esp, 4
mov ecx, eax
jmp 0x410abf
xor ecx, ecx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x28], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x80]
push ecx
call fcn.004d3f10
mov eax, dword [ebp - 0x74]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push 0x529200
push eax
call fcn.00412dd0
lea eax, [ebp - 0x28]
push 0x529200
push eax
call fcn.00412e70
add esp, 0x10
cmp dword [ebp - 0x18], 0
jne 0x410b71
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x60], eax
cmp ecx, eax
je 0x410b60
sub edi, ecx
mov dword [ebp - 0x74], edi
add edi, esi
cmp edi, esi
je 0x410b53
mov ecx, edi
call fcn.0040ada0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x74]
add esi, 0x18
cmp esi, eax
jne 0x410b20
mov eax, dword [ebp - 0x6c]
lea ecx, [eax - 0x18]
call fcn.0040ada0
sub dword [ebp - 0x6c], 0x18
mov esi, dword [ebp - 0x7c]
jmp 0x410b77
add esi, 0x18
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410bb5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410bab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112a5
push edx
push ecx
call fcn.004d1408
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [esi - 0x18]
mov byte [ebp - 4], 9
cmp eax, dword [ebp - 0x6c]
jne 0x410a16
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 edi, edi
mov dword [ebp - 0x30], eax
mov esi, 7
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
cmp ecx, edx
je 0x41122d
lea eax, [ebp - 0x40]
cmp eax, ecx
je 0x410c55
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x410c3d
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040ae30
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
mov edi, 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 0x410c8d
add ecx, 0x18
lea eax, [ebp - 0x58]
cmp eax, ecx
je 0x410c8d
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x410c81
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040ae30
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
cmp esi, 8
cmovae ecx, eax
cmp edi, 0xb
jne 0x410ccd
mov esi, edi
mov edx, str._from_shell
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x410cc7
add ecx, 2
add edx, 2
sub esi, 1
jne 0x410ca5
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], 1
lea eax, [esi + 1]
jmp 0x410d10
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
cmp esi, 8
lea ecx, [ebp - 0x40]
cmovae ecx, eax
cmp edi, 0xd
jne 0x410d04
mov esi, edi
mov edx, str._from_service
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x410d04
add ecx, 2
add edx, 2
sub esi, 1
jne 0x410ce2
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], 2
lea eax, [esi + 2]
jmp 0x410d10
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], 0
xor eax, eax
test eax, eax
jne 0x410d1c
lea esi, [eax - 3]
jmp 0x411232
sub esp, 0xc
call fcn.00411760
mov ecx, eax
call fcn.00410750
test eax, eax
jns 0x410d39
mov esi, 0xfffffffc
jmp 0x411232
xorps xmm0, xmm0
mov dword [ebp - 0xec], 0x5292f4
movups xmmword [ebp - 0xe8], xmm0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 0x2b
call fcn.00411760
mov edi, dword [0x551d5c]
mov esi, eax
add edi, 0x10
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x78], edi
push edi
mov byte [ebp - 4], 0x2d
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x74], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [esi + 0x34]
mov dword [ebp - 0x60], eax
push 4
mov eax, dword [esi + 8]
inc eax
push eax
push dword [esi]
call fcn.004df4e7
add esp, 0xc
test eax, eax
je 0x410df3
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004df4e7
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x410df3
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
lea edx, [eax*4]
mov eax, dword [esi]
add eax, edx
je 0x410de1
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx + edx]
test eax, eax
je 0x410df0
lea ecx, [ebp - 0xec]
mov dword [eax], ecx
inc dword [esi + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 0x2b
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0x90], 0x529348
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xb4], vtable.RC::RCPicWorkerMainWindow.1.0
mov dword [ebp - 0x90], vtable.RC::RCPicWorkerMainWindow.0
mov byte [ebp - 4], 0x30
lea eax, [ebp - 0x94]
push dword [ebp - 0x84]
push eax
push 0x54ec88
call fcn.00411540
movzx esi, ax
add esp, 0xc
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x411071
call fcn.004d2d7a
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x411071
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00411760
mov edi, eax
mov byte [ebp - 0x60], 0
mov eax, dword [0x551d5c]
add eax, 0x10
mov dword [ebp - 0x64], eax
push eax
mov byte [ebp - 4], 0x33
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x38]
mov esi, eax
mov byte [ebp - 0x60], 1
test eax, eax
je 0x410ee0
cmp dword [eax + 4], 0
jle 0x410ee0
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [edi + 0x38]
test esi, esi
je 0x410f12
mov eax, dword [esi]
test eax, eax
je 0x410ef9
push eax
call fcn.004df5eb
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004d1408
add esp, 8
push dword [ebp - 0x64]
mov dword [edi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 0x30
mov esi, dword [edi + 0x34]
test esi, esi
je 0x410f6f
mov eax, dword [esi]
test eax, eax
je 0x410f46
push eax
call fcn.004df5eb
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x410f5d
push eax
call fcn.004df5eb
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.004d1408
add esp, 8
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x410fa3
cmp dword [esi], 0
je 0x410fa3
nop dword [eax + eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x410f8d
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 0x410f80
mov esi, dword [0x54f078]
mov ecx, dword [0x54f07c]
cmp esi, ecx
jae 0x410fcd
mov eax, dword [esi]
test eax, eax
je 0x410fc6
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x54f07c]
add esi, 4
cmp esi, ecx
jb 0x410fb3
mov ecx, edi
call fcn.0040e060
xor esi, esi
mov byte [ebp - 4], 0x36
mov dword [ebp - 0xb4], vtable.RC::RCPicWorkerMainWindow.1.0
mov dword [ebp - 0x90], vtable.RC::RCPicWorkerMainWindow.0
mov byte [ebp - 4], 0x3a
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x411002
push eax
call fcn.004d2e26
mov byte [ebp - 4], 0x3b
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x411023
push eax
call fcn.004df5eb
add esp, 4
mov dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
test eax, eax
je 0x411054
push eax
call fcn.004df5eb
add esp, 4
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 0x12
jmp 0x411232
push 0
push 0
push eax
call fcn.004d2e7c
test si, si
je 0x410e9f
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x54f044
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x54f05c]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xac]
push 0x54f044
mov dword [0x54f05c], eax
call edi
mov eax, dword [0x54ed20]
mov edx, dword [0x54ed18]
sub eax, edx
mov ecx, dword [0x54ed14]
push 0
push dword [0x550fdc]
push 0
push 0
push eax
mov eax, dword [0x54ed1c]
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 0x410e9f
push 0
push dword [ebp - 0xb0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebp - 0x5c]
cmp byte [edi + 0xc], 0
mov dword [edi + 0x14], esi
jne 0x411155
cmp dword [edi + 0x10], 0
mov byte [edi + 0xc], 1
jne 0x411155
push 0x68
call fcn.004d12da
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0x31
mov ecx, eax
push dword [edi + 0x14]
call fcn.00403280
mov byte [ebp - 4], 0x30
mov ecx, eax
mov dword [edi + 0x10], eax
call fcn.00403660
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, 1
xor esi, esi
mov dword [ebp - 0x5c], ecx
test ecx, ecx
je 0x41119f
nop dword [eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
call edi
test eax, eax
jne 0x41119f
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
push esi
mov eax, dword [eax + 4]
call eax
inc esi
test eax, eax
jne 0x411170
mov dword [ebp - 0x5c], eax
push 0
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
mov ecx, dword [ebp - 0x5c]
cmp eax, 0xffffffff
je 0x411165
test eax, eax
je 0x410e9f
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4111f7
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x5c]
cmp eax, 0x118
ja 0x41121d
je 0x411165
cmp eax, 0xf
je 0x411165
cmp eax, 0xa0
jmp 0x411222
cmp eax, 0x200
je 0x411165
jmp 0x41115b
mov esi, 0xfffffffe
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x3c
call fcn.0040ada0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x40
call fcn.0040ada0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.0040ac20
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 7
call fcn.004c18d0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.0041e7d0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.00415240
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d12c9
mov esp, ebp
pop ebp
ret 8
call fcn.004dcc99
int3