Function at 0x4141d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fa32
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x57c06c]
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 ebx, ecx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xd0], 0
call fcn.0040b710
cmp byte [ebx + 0x184], 0
mov esi, eax
mov dword [ebp - 0xc4], esi
je 0x41423b
mov ecx, ebx
call fcn.00414f00
lea ecx, [esi + 0xc4]
push ecx
mov ecx, ebx
call fcn.00414ab0
call fcn.0040b710
add eax, 0x190
cmp dword [eax + 0x14], 8
jb 0x41424d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4142a0
call fcn.0040b710
cmp dword [eax + 0x1a4], 8
lea edi, [eax + 0x190]
jb 0x41426f
mov edi, dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push edi
push dword [0x59b48c]
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
mov dword [ebp - 0xc0], ebx
test ebx, ebx
jne 0x414348
push 0x18
xor eax, eax
mov dword [ebp - 0x18], 0
push str.no_icon_Load_Default_0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040b450
push 0xb0
push str.t_wndTrayAd.cpp
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0
call fcn.00411450
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
mov dword [esi + 0x64], 0
cmp esi, eax
je 0x414308
cmp dword [ebp - 0x14], 8
mov ecx, eax
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.0040b450
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
mov ecx, esi
call fcn.00411b50
lea ecx, [ebp - 0xb8]
call fcn.00411690
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b3f0
push 0x6b
push dword [0x59b48c]
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, eax
mov dword [ebp - 0xc0], ebx
mov esi, dword [ebp - 0xc8]
add esi, 0x168
call fcn.00412ae0
mov edi, eax
mov dword [ebp - 0x50], 3
push 0
mov dword [ebp - 0x4c], 0x412d20
mov dword [ebp - 0x48], 0
mov dword [edi + 0x24], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x44], 0
call esi
push 0x7f00
push 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], str.firmail_tray_icon_class_name
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push 0
call esi
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0xc0000000
push str.firmail_tray_icon_window_name
push str.firmail_tray_icon_class_name
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push str.TaskbarCreated
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0
push 0x2bc
push 2
push dword [edi + 4]
mov dword [edi + 0x44], eax
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [ebp - 0xc4]
add esi, 0xdc
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x414424
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414440
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040b450
mov dword [ebp - 4], 2
call fcn.00412ae0
test ebx, ebx
je 0x41446c
mov dword [eax + 0x28], ebx
lea ecx, [eax + 0x2c]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x414487
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040b450
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b3f0
cmp dword [esi + 0x14], 8
jb 0x41449e
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4144b7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b450
mov dword [ebp - 4], 3
call fcn.00412ae0
lea ecx, [ebp - 0x28]
push ecx
push ebx
sub esp, 0xc
mov ecx, eax
call fcn.00412fb0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b3f0
push ecx
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00415b10
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x1c]
call fcn.00415a10
call fcn.00412ae0
lea esi, [eax + 0x14]
mov ecx, esi
mov dword [ebp - 0xc0], esi
call fcn.004130b0
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
cmp edi, dword [ebp - 0x18]
je 0x4145d8
nop
mov eax, dword [esi]
mov edx, ebx
mov dword [ebp - 0xbc], edx
inc ebx
mov esi, eax
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x41457a
cmp dword [ecx + 0x10], edx
jge 0x414570
mov ecx, dword [ecx + 8]
jmp 0x414574
mov esi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x414566
cmp esi, eax
je 0x414583
cmp edx, dword [esi + 0x10]
jge 0x4145c1
lea eax, [ebp - 0xbc]
push ecx
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xcc]
push eax
push ecx
mov ecx, dword [ebp - 0xc0]
call fcn.004131e0
mov ecx, dword [ebp - 0xc0]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xd0]
push eax
call fcn.00413210
mov esi, dword [ebp - 0xd0]
mov eax, dword [edi]
add edi, 4
mov dword [esi + 0x14], eax
mov esi, dword [ebp - 0xc0]
cmp edi, dword [ebp - 0x18]
jne 0x414550
mov eax, dword [ebp - 0xc4]
cmp dword [eax + 0x88], 1
jne 0x41467b
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0xd0], eax
call fcn.00412ae0
mov ebx, eax
mov ecx, dword [ebx + 8]
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0
mov esi, dword [ebx + 0x14]
mov eax, dword [esi]
mov dword [ebp - 0xc4], eax
cmp eax, esi
je 0x414642
add eax, 0x10
lea ecx, [ebx + 8]
push eax
call fcn.0040b270
lea ecx, [ebp - 0xc4]
call fcn.00413130
mov eax, dword [ebp - 0xc4]
cmp eax, esi
jne 0x414621
mov eax, dword [ebp - 0xd0]
mov dword [ebx + 0x1c], eax
call fcn.00412ae0
mov esi, eax
push 1
push dword [esi + 4]
mov dword [esi + 0x20], 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 0x1c]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x50], 1
push 0x81
push dword [0x59b48c]
call dword [sym.imp.USER32.dll_LoadMenuW]
mov esi, dword [ebp - 0xc8]
push 0x74
mov dword [esi + 0x178], eax
call fcn.004e24e8
mov ebx, eax
add esp, 4
mov dword [ebp - 0xcc], ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
push 6
xor eax, eax
mov dword [ebp - 0x30], 0
push str.Worker
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0040b450
mov dword [ebp - 0xd0], 1
lea edi, [esi + 0x16c]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
push 0
push 0
mov dword [ebp - 4], 7
push 0
mov dword [ebx], vtable.t_TaskWrokerRunner_class_std::function_void____cdecl___void___.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x18]
mov word [ebx + 0x14], 0
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [ebp - 4], 9
lea esi, [ebx + 0x30]
mov dword [ebp - 0xbc], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004e24e8
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 0xa
lea esi, [ebx + 0x44]
mov dword [ebp - 0xbc], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004e24e8
mov dword [esi], eax
add esp, 8
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebx + 0x5c]
mov dword [ebx + 0x58], edi
call fcn.0040ec80
mov ecx, ebx
mov byte [ebp - 4], 0xc
call fcn.00415f10
mov esi, dword [ebp - 0xc8]
mov ecx, dword [esi + 0x1a0]
mov dword [esi + 0x1a0], ebx
test ecx, ecx
je 0x4147ff
mov dword [ebp - 4], 0xe
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 4
call fcn.0040b3f0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__void____cdecl___void______void___.0
mov dword [ebp - 0x4c], 0x410ce0
mov dword [ebp - 0x2c], eax
mov edi, dword [esi + 0x1a0]
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 0xd0], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x10
mov eax, dword [edi + 0x40]
inc eax
cmp dword [edi + 0x38], eax
ja 0x41484e
push ecx
lea ecx, [edi + 0x30]
call fcn.00416150
mov eax, dword [edi + 0x38]
dec eax
and dword [edi + 0x3c], eax
mov eax, dword [edi + 0x40]
add eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
dec ecx
and ecx, eax
mov eax, dword [edi + 0x34]
lea ebx, [ecx*4]
cmp dword [ebx + eax], 0
jne 0x414881
push 0x28
call fcn.004e24e8
mov ecx, dword [edi + 0x34]
add esp, 4
mov dword [ebx + ecx], eax
mov eax, dword [edi + 0x34]
mov ebx, dword [ebx + eax]
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebx + 0x24], 0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4148ad
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
inc dword [edi + 0x40]
test esi, esi
je 0x4148bb
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4148d7
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0x1a0]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call fcn.004ee60f
add esp, 4
mov esi, eax
call fcn.0040b710
mov dword [eax + 0x188], esi
call fcn.0040cd80
mov ecx, eax
call fcn.0040cb60
lea ecx, [ebp - 0x1c]
call fcn.0040ca10
xor al, al
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.004e24d7
mov esp, ebp
pop ebp
ret 0x1c