Function at 0x4109b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbaee
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x54e414]
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.0040af20
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x8c]
call fcn.004152c0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410a68
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410a5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411395
push edx
push ecx
call fcn.004d15c5
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 0x410a98
cmp byte [ebp - 0x87], al
je 0x410a98
or esi, 0xffffffff
jmp 0x411364
lea ecx, [ebp - 0x84]
call fcn.0041e800
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 7
call fcn.004c0040
push 0x529070
push esi
mov byte [ebp - 4], 8
call fcn.00412ec0
push 0x529070
push esi
call fcn.00412f60
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.00415650
mov esi, dword [ebp - 0x70]
add esp, 0x1c
cmp esi, dword [ebp - 0x6c]
je 0x410cc9
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 0x410b32
mov ecx, dword [edi]
mov dword [ebp - 0x80], ecx
cmp eax, 8
jae 0x410b4d
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x410bd5
or eax, 7
cmp eax, 0x7ffffffe
cmova eax, edx
mov dword [ebp - 0x60], eax
inc eax
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x410b6b
or ecx, 0xffffffff
jmp 0x410b73
cmp ecx, 0x1000
jb 0x410b9c
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.004d1497
add esp, 4
test eax, eax
je 0x411395
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x410baf
test ecx, ecx
je 0x410bad
push ecx
call fcn.004d1497
add esp, 4
mov ecx, eax
jmp 0x410baf
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.004d40d0
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 0x529070
push eax
call fcn.00412ec0
lea eax, [ebp - 0x28]
push 0x529070
push eax
call fcn.00412f60
add esp, 0x10
cmp dword [ebp - 0x18], 0
jne 0x410c61
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x60], eax
cmp ecx, eax
je 0x410c50
sub edi, ecx
mov dword [ebp - 0x74], edi
add edi, esi
cmp edi, esi
je 0x410c43
mov ecx, edi
call fcn.0040ae90
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 0x410c10
mov eax, dword [ebp - 0x6c]
lea ecx, [eax - 0x18]
call fcn.0040ae90
sub dword [ebp - 0x6c], 0x18
mov esi, dword [ebp - 0x7c]
jmp 0x410c67
add esi, 0x18
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x410ca5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410c9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411395
push edx
push ecx
call fcn.004d15c5
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 0x410b06
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 0x41131d
lea eax, [ebp - 0x40]
cmp eax, ecx
je 0x410d45
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x410d2d
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040af20
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 0x410d7d
add ecx, 0x18
lea eax, [ebp - 0x58]
cmp eax, ecx
je 0x410d7d
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x410d71
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040af20
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
cmp esi, 8
cmovae ecx, eax
cmp edi, 0xb
jne 0x410dbd
mov esi, edi
mov edx, str._from_shell
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x410db7
add ecx, 2
add edx, 2
sub esi, 1
jne 0x410d95
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], 1
lea eax, [esi + 1]
jmp 0x410e00
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
cmp esi, 8
lea ecx, [ebp - 0x40]
cmovae ecx, eax
cmp edi, 0xd
jne 0x410df4
mov esi, edi
mov edx, str._from_service
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x410df4
add ecx, 2
add edx, 2
sub esi, 1
jne 0x410dd2
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], 2
lea eax, [esi + 2]
jmp 0x410e00
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], 0
xor eax, eax
test eax, eax
jne 0x410e0c
lea esi, [eax - 3]
jmp 0x411322
sub esp, 0xc
call fcn.00411850
mov ecx, eax
call fcn.00410840
test eax, eax
jns 0x410e29
mov esi, 0xfffffffc
jmp 0x411322
xorps xmm0, xmm0
mov dword [ebp - 0xec], 0x529164
movups xmmword [ebp - 0xe8], xmm0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov byte [ebp - 4], 0x2b
call fcn.00411850
mov edi, dword [0x551efc]
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.004df6a7
add esp, 0xc
test eax, eax
je 0x410ee3
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.004df6a7
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x410ee3
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
lea edx, [eax*4]
mov eax, dword [esi]
add eax, edx
je 0x410ed1
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx + edx]
test eax, eax
je 0x410ee0
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], 0x5291b8
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 0x54ec78
call fcn.00411630
movzx esi, ax
add esp, 0xc
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x411161
call fcn.004d2f3a
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x411161
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00411850
mov edi, eax
mov byte [ebp - 0x60], 0
mov eax, dword [0x551efc]
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 0x410fd0
cmp dword [eax + 4], 0
jle 0x410fd0
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [edi + 0x38]
test esi, esi
je 0x411002
mov eax, dword [esi]
test eax, eax
je 0x410fe9
push eax
call fcn.004df7ab
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.004d15c5
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 0x41105f
mov eax, dword [esi]
test eax, eax
je 0x411036
push eax
call fcn.004df7ab
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41104d
push eax
call fcn.004df7ab
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.004d15c5
add esp, 8
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x411093
cmp dword [esi], 0
je 0x411093
nop dword [eax + eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x41107d
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 0x411070
mov esi, dword [0x54ee58]
mov ecx, dword [0x54ee5c]
cmp esi, ecx
jae 0x4110bd
mov eax, dword [esi]
test eax, eax
je 0x4110b6
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x54ee5c]
add esi, 4
cmp esi, ecx
jb 0x4110a3
mov ecx, edi
call fcn.0040e150
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 0x4110f2
push eax
call fcn.004d2fe6
mov byte [ebp - 4], 0x3b
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x411113
push eax
call fcn.004df7ab
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 0x411144
push eax
call fcn.004df7ab
add esp, 4
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov byte [ebp - 4], 0x12
jmp 0x411322
push 0
push 0
push eax
call fcn.004d303c
test si, si
je 0x410f8f
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x54ee24
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x54ee3c]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xac]
push 0x54ee24
mov dword [0x54ee3c], eax
call edi
mov eax, dword [0x54ed10]
mov edx, dword [0x54ed08]
sub eax, edx
mov ecx, dword [0x54ed04]
push 0
push dword [0x55117c]
push 0
push 0
push eax
mov eax, dword [0x54ed0c]
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 0x410f8f
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 0x411245
cmp dword [edi + 0x10], 0
mov byte [edi + 0xc], 1
jne 0x411245
push 0x68
call fcn.004d1497
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0x31
mov ecx, eax
push dword [edi + 0x14]
call fcn.00403260
mov byte [ebp - 4], 0x30
mov ecx, eax
mov dword [edi + 0x10], eax
call fcn.00403640
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ecx, 1
xor esi, esi
mov dword [ebp - 0x5c], ecx
test ecx, ecx
je 0x41128f
nop dword [eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xd0]
push eax
call edi
test eax, eax
jne 0x41128f
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
push esi
mov eax, dword [eax + 4]
call eax
inc esi
test eax, eax
jne 0x411260
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 0x411255
test eax, eax
je 0x410f8f
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 0x4112e7
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 0x41130d
je 0x411255
cmp eax, 0xf
je 0x411255
cmp eax, 0xa0
jmp 0x411312
cmp eax, 0x200
je 0x411255
jmp 0x41124b
mov esi, 0xfffffffe
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x3c
call fcn.0040ae90
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x40
call fcn.0040ae90
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.0040ad10
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 7
call fcn.004c0210
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.0041e8c0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.00415320
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.004d1486
mov esp, ebp
pop ebp
ret 8
call fcn.004dce59
int3