Function at 0x402950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4049d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x7c]
mov dword [esp + 0xf8], ebx
push eax
push str.ThunderAgent.Agent.1
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x7c]
push ecx
push 0x4051c0
push 1
push ebx
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x4029d6
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf8], 0xffffffff
cmp eax, ebx
je 0x402d94
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x402e8f
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x48], str.AddTask
mov dword [esp + 0x4c], str.CommitTasks2
mov ebp, dword [eax]
push edx
mov esi, eax
call edi
push eax
lea eax, [esp + 0x50]
push 1
lea ecx, [esp + 0x88]
push eax
push ecx
push esi
call dword [ebp + 0x14]
cmp eax, ebx
jge 0x402a31
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf8], 0xffffffff
cmp eax, ebx
jmp 0x402d8c
mov eax, dword [esp + 0x10]
mov esi, eax
mov ebp, dword [eax]
lea eax, [esp + 0x24]
push eax
call edi
push eax
lea ecx, [esp + 0x54]
push 1
lea edx, [esp + 0x88]
push ecx
push edx
push esi
call dword [ebp + 0x14]
cmp eax, ebx
jge 0x402a7f
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf8], 0xffffffff
cmp eax, ebx
je 0x402e00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x402e8f
xor ebp, ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x78], ebx
mov dword [esp + 0x8c], ebx
xor edi, edi
mov dword [esp + 0x50], edi
push 0x402f20
push 0x402f10
push 5
lea edx, [esp + 0xac]
push 0x10
push edx
mov byte [esp + 0x10c], 4
call fcn.0040468a
lea eax, [esp + 0xa0]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], ebx
lea esi, [esp + 0xa0]
mov dword [esp + 0x14], 5
push 8
push ebx
push esi
push esi
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov eax, dword [esp + 0x14]
add esi, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x402ae3
mov word [esp + 0x68], bx
mov cl, byte [esp + 0x1f]
push ebx
mov byte [esp + 0x5c], cl
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [esp + 0x100]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0xf8], 7
mov eax, dword [edx + 0x2c]
cmp eax, ebx
je 0x402c65
mov eax, dword [esp + 0x100]
add eax, 4
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x90], edx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ecx + 4]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x9c], ecx
mov ecx, dword [edx]
push ecx
push ebx
push eax
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x402b91
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [esp + 0x14], edx
jmp 0x402b95
mov dword [esp + 0x14], eax
push ebp
call esi
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call fcn.00402eb0
mov ecx, dword [esp + 0x10c]
mov ebp, eax
add esp, 8
mov dword [esp + 0x54], ebp
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x402bc7
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [esp + 0x14], edx
jmp 0x402bcb
mov dword [esp + 0x14], eax
push edi
call esi
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call fcn.00402eb0
mov edi, eax
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0xa8], edi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xe8], ebp
mov edx, dword [eax]
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x6c]
push ebx
lea eax, [esp + 0x40]
push ecx
push eax
push 1
mov dword [esp + 0x64], edi
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push 0x4051b0
push ecx
push edx
call dword [eax + 0x18]
xor ebx, ebx
cmp eax, ebx
jl 0x402d9e
mov ecx, dword [esp + 0x100]
call fcn.00402f70
mov ecx, dword [esp + 0x100]
cmp dword [ecx + 0x2c], ebx
jne 0x402b3c
lea edx, [esp + 0xa0]
mov dword [esp + 0x40], 1
mov dword [esp + 0x38], edx
mov word [esp + 0x28], bx
push 0x16
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x108], 8
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
cmp word [esp + 0x28], 3
je 0x402cb6
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [esp + 0x18], eax
mov word [esp + 0x28], 3
lea eax, [esp + 0x28]
lea ecx, [esp + 0xa0]
push eax
push ecx
mov dword [esp + 0x38], 1
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x402ce6
mov word [esp + 0xa0], 0xa
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x10]
push ebx
mov dword [esp + 0x1c], eax
push ebx
mov edx, dword [eax]
lea eax, [esp + 0x70]
lea ecx, [esp + 0x40]
push eax
push ecx
push 1
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push 0x4051b0
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
jge 0x402e0a
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x28]
push edx
call ebx
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x68]
push eax
call ebx
push 0x402f20
push 5
lea ecx, [esp + 0xa8]
push 0x10
push ecx
mov byte [esp + 0x108], 4
call fcn.00404596
push edi
call esi
push 0
call esi
push 0
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf8], 0xffffffff
test eax, eax
je 0x402d94
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, 1
jmp 0x402e8f
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x402f20
push 5
lea eax, [esp + 0xa8]
push 0x10
push eax
mov byte [esp + 0x108], 4
call fcn.00404596
push edi
call esi
push ebx
call esi
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf8], 0xffffffff
cmp eax, ebx
je 0x402e00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x402e8f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402e20
mov dword [esp + 0x10], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x28]
push edx
call ebx
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x68]
push eax
call ebx
push 0x402f20
push 5
lea ecx, [esp + 0xa8]
push 0x10
push ecx
mov byte [esp + 0x108], 4
call fcn.00404596
push edi
call esi
push 0
call esi
push 0
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0xf8], 0xffffffff
test eax, eax
je 0x402e8d
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xec
ret