Function at 0x406351
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
mov eax, 0x4120c4
call fcn.00410d20
sub esp, 0x244
mov al, byte [ebp - 0x11]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x84], al
call fcn.00402a6c
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
push 0x44c
mov byte [ebp - 4], 1
call fcn.00405c86
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.004073e0
mov al, byte [ebp - 0x11]
push ebx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0xa4], al
call fcn.00402a6c
lea eax, [ebp - 0xa4]
mov ecx, esi
push eax
push 0x438
mov byte [ebp - 4], 2
call fcn.00405c86
lea eax, [ebp - 0xa4]
mov ecx, esi
push eax
call fcn.00406155
mov al, byte [ebp - 0x11]
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x48], al
call fcn.00402a6c
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
push 0x451
mov byte [ebp - 4], 3
call fcn.00405c5f
mov eax, dword [0x4135e7]
cmp eax, dword [esi + 0xd8]
je 0x406491
push dword [0x41b218]
lea eax, [ebp - 0x58]
push dword [0x41b1b4]
push eax
call fcn.00408c15
add esp, 0xc
push eax
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, 0x413544
mov dword [ebp - 0x114], esi
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 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, [ebp - 0x114]
lea ecx, [ebp - 0x198]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::runtime_error_const__]
lea eax, [ebp - 0x198]
push 0x417868
push eax
mov dword [ebp - 0x198], esi
call sub.MSVCRT.dll__CxxThrowException
cmp dword [ebp - 0x40], 2
jbe 0x40664d
mov eax, dword [ebp - 0x44]
mov edi, 0x413574
cmp eax, ebx
jne 0x4064a9
mov eax, edi
push ebx
push dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test eax, eax
setne al
test al, al
je 0x4064dd
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jne 0x4064c6
mov eax, edi
mov ecx, dword [ebp - 0x40]
lea edi, [esi + 0x80]
shr ecx, 1
push ecx
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
jmp 0x40655a
cmp dword [ebp - 0x44], ebx
je 0x4064e5
mov edi, dword [ebp - 0x44]
mov al, byte [ebp - 0x11]
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x58], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x58]
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_char_const___unsigned_int_]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.0040842a
pop ecx
pop ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea edi, [esi + 0x80]
mov byte [ebp - 4], 8
push dword [ecx]
mov ecx, edi
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
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 ecx, [ebp - 0x70]
call fcn.00408f7d
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00408f91
cmp dword [esi + 0x88], ebx
je 0x406647
cmp byte [esi + 0xa1], 0
jne 0x40659a
lea eax, [esi + 0x130]
lea ecx, [ebp - 0x70]
push eax
call fcn.00408fb1
test al, al
je 0x406647
lea ecx, [ebp - 0x234]
call fcn.0040737b
mov eax, dword [esi + 0x54]
mov byte [ebp - 4], 0xa
cmp eax, ebx
jne 0x4065b5
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push eax
mov dword [ebp - 0x18], eax
call ebx
pop ecx
push eax
lea ecx, [ebp - 0x1cc]
push dword [ebp - 0x18]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov edi, dword [edi + 4]
test edi, edi
jne 0x4065df
mov edi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push edi
call ebx
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1bc]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov edi, eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x22c]
push eax
push 0x41cbc0
call fcn.0040413c
mov eax, dword [0x41cbc8]
push 0
push 0x4076d8
push edi
push 0x71
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 1
mov byte [ebp - 4], 9
pop edi
lea ecx, [ebp - 0x234]
cmp eax, edi
je 0x406642
call fcn.004019c3
jmp 0x407214
call fcn.004019c3
mov byte [ebp - 4], 3
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_clock]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x41cc98
push 0x4052b1
push ebx
push ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esi + 0xf0]
push 4
push ebx
push str.Excel.Application
lea ecx, [edi + 8]
mov dword [ebp - 0x8c], eax
call fcn.004075e6
cmp eax, ebx
mov dword [edi + 0xc], eax
jge 0x40669d
push ebx
push eax
call fcn.00410bf6
cmp byte [esi + 0xa3], 1
jne 0x4067be
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0040fcb4
mov eax, dword [eax]
cmp eax, ebx
je 0x4066bf
mov eax, dword [eax]
jmp 0x4066c1
xor eax, eax
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
cmp eax, 9
mov ecx, dword [ebp - 0x18]
setle bl
test ecx, ecx
je 0x4066db
call fcn.00402ad2
test bl, bl
je 0x4067be
cmp dword [ebp - 0x34], 0
je 0x4066fb
push 0
push 0
push 0x502
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push dword [0x41b1c8]
lea eax, [ebp - 0x108]
push dword [0x41b1b4]
push eax
call fcn.00408c15
add esp, 0xc
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040842a
pop ecx
pop ecx
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test eax, eax
mov byte [ebp - 4], 0xc
je 0x406739
mov edi, eax
push dword [0x41b22c]
lea eax, [ebp - 0x58]
push dword [0x41b1b4]
push eax
call fcn.00408c15
add esp, 0xc
push eax
lea eax, [ebp - 0xd8]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040842a
mov eax, dword [eax + 4]
pop ecx
test eax, eax
pop ecx
jne 0x406770
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0x30
push edi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
lea ecx, [ebp - 0xd8]
pop edi
push edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x407214
mov eax, dword [edi]
and dword [ebp - 0x18], 0
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
je 0x4067ff
lea eax, [ebp - 0x128]
mov ecx, edi
push eax
call fcn.0040fd77
push 2
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00410121
and eax, 0xff
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
call fcn.00402e8a
mov ecx, esi
call fcn.00405e97
mov al, byte [ebp - 0x11]
push 0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 0xf8], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 0xf
push eax
push 0xf
call fcn.0040850f
pop ecx
pop ecx
lea ecx, [ebp - 0xf8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00405098
mov ecx, edi
call fcn.0040fd26
cmp byte [esi + 0x13c], 0
je 0x40690b
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0xa
push 0x80020004
call fcn.0040435f
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
mov byte [ebp - 4], 0x10
call fcn.0040fb7a
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x12
push ecx
mov ecx, eax
call fcn.0040f3b5
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x14
call fcn.0040518e
mov ecx, esi
call fcn.00405fd1
sub esp, 0x10
mov ebx, esp
mov dword [ebp - 0x20], esp
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, 0x41cc88
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x4068c8
push eax
call fcn.004105a0
sub esp, 0x10
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.00407621
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0
call fcn.00407675
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x14
call fcn.0040ff1c
push 0
lea ecx, [ebp - 0x70]
call fcn.00407874
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xf
call fcn.00407833
lea eax, [ebp - 0x20]
lea ebx, [esi + 0xf0]
push eax
mov ecx, ebx
call fcn.0040fced
mov eax, dword [eax]
mov byte [ebp - 4], 0x16
test eax, eax
je 0x40692a
mov edi, dword [eax]
jmp 0x40692c
xor edi, edi
push dword [0x41b238]
lea eax, [ebp - 0xd8]
push dword [0x41b1b4]
push eax
call fcn.00408c15
add esp, 0xc
push eax
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0x17
call fcn.0040842a
mov eax, dword [eax + 4]
pop ecx
test eax, eax
pop ecx
jne 0x406966
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push edi
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
push 1
lea ecx, [ebp - 0x108]
mov dword [esi + 0x120], eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0xd8]
pop edi
mov byte [ebp - 4], 0x16
push edi
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 ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x4069a6
call fcn.00402ad2
push dword [esi + 0x120]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407246
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x120]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4069d6
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push dword [ebp - 0x1c]
call fcn.00409bf1
test eax, eax
jne 0x406a55
push dword [0x41b214]
lea eax, [ebp - 0x108]
push dword [0x41b1b4]
push eax
call fcn.00408c15
add esp, 0xc
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x18
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, 0x413544
mov dword [ebp - 0xe4], esi
push edi
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x1a
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, [ebp - 0xe4]
lea ecx, [ebp - 0x144]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::runtime_error_const__]
lea eax, [ebp - 0x144]
push 0x417868
push eax
mov dword [ebp - 0x144], esi
call sub.MSVCRT.dll__CxxThrowException
push dword [0x41b21c]
lea eax, [ebp - 0xd8]
push dword [0x41b1b4]
push eax
call fcn.00408c15
add esp, 0xc
push eax
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0x1e
call fcn.0040842a
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 0x1f
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.00405098
mov ecx, ebx
call fcn.0040fd26
push edi
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x1e
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xf
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push eax
push 0x487
push dword [esi + 0x120]
call edi
mov al, byte [ebp - 0x11]
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00402a6c
mov eax, dword [esi + 0x18]
mov byte [ebp - 4], 0x20
test eax, eax
je 0x406b29
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x406b09
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ecx
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [esi + 0x18]
push eax
push 0x488
push dword [esi + 0x120]
call edi
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push 0x413
call fcn.00405c86
test al, al
je 0x406b7d
mov eax, dword [ebp - 0x2c]
mov ebx, 0x413574
test eax, eax
jne 0x406b4b
mov eax, ebx
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [ebp - 0x28]
push eax
push 0x484
push dword [esi + 0x120]
call edi
push dword [0x413570]
lea ecx, [ebp - 0x30]
push 0
call fcn.00403ad2
jmp 0x406b82
mov ebx, 0x413574
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push 0x415
call fcn.00405c86
test al, al
je 0x406bcf
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x406b9f
mov eax, ebx
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [ebp - 0x28]
push eax
push 0x486
push dword [esi + 0x120]
call edi
push dword [0x413570]
lea ecx, [ebp - 0x30]
push 0
call fcn.00403ad2
mov eax, dword [esi + 0x38]
test eax, eax
je 0x406c03
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x406be3
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ecx
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [esi + 0x38]
push eax
push 0x48d
push dword [esi + 0x120]
call edi
mov eax, dword [esi + 0x48]
test eax, eax
je 0x406c37
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x406c17
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ecx
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [esi + 0x48]
push eax
push 0x48e
push dword [esi + 0x120]
call edi
cmp dword [ebp - 0x7c], 0
je 0x406c79
mov eax, dword [ebp - 0x80]
test eax, eax
jne 0x406c46
mov eax, ebx
push dword [ebp - 0x7c]
push eax
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [ebp - 0x7c]
push eax
push 0x483
push dword [esi + 0x120]
call edi
push dword [0x413570]
lea ecx, [ebp - 0x84]
push 0
call fcn.00403ad2
cmp dword [ebp - 0x9c], 0
je 0x406cc7
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x406c8e
mov eax, ebx
push dword [ebp - 0x9c]
push eax
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [ebp - 0x9c]
push eax
push 0x482
push dword [esi + 0x120]
call edi
push dword [0x413570]
lea ecx, [ebp - 0xa4]
push 0
call fcn.00403ad2
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x406d04
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jne 0x406ce1
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ecx
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [esi + 0xc0]
push eax
push 0x489
push dword [esi + 0x120]
call edi
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x406d41
mov ecx, dword [esi + 0xcc]
test ecx, ecx
jne 0x406d1e
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ecx
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [esi + 0xd0]
push eax
push 0x48a
push dword [esi + 0x120]
call edi
and dword [ebp - 0x18], 0
mov ebx, 0x485
cmp dword [ebp - 0x18], 0x64
jge 0x406db2
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x4b0
push eax
call fcn.00405c86
test al, al
je 0x406da5
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x406d74
mov eax, 0x413574
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [ebp - 0x28]
push eax
push ebx
push dword [esi + 0x120]
call edi
push dword [0x413570]
lea ecx, [ebp - 0x30]
push 0
call fcn.00403ad2
inc dword [ebp - 0x18]
jmp 0x406d4a
push 0
push 0
push ebx
push dword [esi + 0x120]
call edi
push dword [0x413570]
xor ebx, ebx
lea ecx, [ebp - 0x30]
push ebx
call fcn.00403ad2
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push 0x453
call fcn.00405c86
test al, al
je 0x406e12
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x406de3
mov eax, 0x413574
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [ebp - 0x28]
push eax
push 0x48c
push dword [esi + 0x120]
call edi
push dword [0x413570]
lea ecx, [ebp - 0x30]
push ebx
call fcn.00403ad2
cmp dword [ebp - 0x40], ebx
je 0x406e52
mov eax, dword [ebp - 0x44]
cmp eax, ebx
jne 0x406e23
mov eax, 0x413574
push dword [ebp - 0x40]
push eax
push dword [ebp - 0x1c]
call fcn.004060ef
add esp, 0xc
push dword [ebp - 0x40]
push eax
push 0x48b
push dword [esi + 0x120]
call edi
push dword [0x413570]
lea ecx, [ebp - 0x30]
push ebx
call fcn.00403ad2
lea ebx, [esi + 0xf0]
push 1
mov ecx, ebx
call fcn.0040fc2b
cmp byte [esi + 0xa2], 0
jne 0x406e73
push 1
mov ecx, ebx
call fcn.0040fc04
and dword [ebp - 0x60], 0
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], 0x413624
cmp byte [esi + 0xa3], 0
mov byte [ebp - 4], 0x21
je 0x40701a
sub esp, 0x10
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x18], esp
push esp
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, 0x41cc88
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x406ebc
push eax
call fcn.004105a0
sub esp, 0x10
mov byte [ebp - 4], 0x22
mov ecx, esp
mov dword [ebp - 0x20], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x23
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x24
mov ecx, esp
mov dword [ebp - 0xb4], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x25
mov ecx, esp
mov dword [ebp - 0xc4], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x26
mov ecx, esp
mov dword [ebp - 0xbc], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x27
mov ecx, esp
mov dword [ebp - 0xac], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x28
mov ecx, esp
mov dword [ebp - 0xb0], esp
push ebx
call fcn.00407621
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 0x29
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0xb8], esp
push eax
call fcn.00407646
sub esp, 0x10
mov byte [ebp - 4], 0x2a
mov ecx, esp
mov dword [ebp - 0xc0], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x2b
mov ecx, esp
mov dword [ebp - 0xc8], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x2c
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 3
push 3
call fcn.0040435f
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0x2d
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push eax
call fcn.00405098
lea eax, [ebp - 0x70]
lea ecx, [esi + 0xf0]
push eax
mov byte [ebp - 4], 0x2e
call fcn.0040fb7a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x30
push ecx
mov ecx, eax
call fcn.0040f555
mov ebx, eax
push dword [ebx + 4]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x31
push eax
call fcn.00402ef7
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x30
call fcn.00407833
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x70]
jmp 0x407190
sub esp, 0x10
mov dword [ebp - 0x94], esp
mov dword [ebp - 0x18], esp
push esp
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, 0x41cc88
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x407046
push eax
call fcn.004105a0
sub esp, 0x10
mov byte [ebp - 4], 0x32
mov ecx, esp
mov dword [ebp - 0xa8], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x33
mov ecx, esp
mov dword [ebp - 0xc8], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x34
mov ecx, esp
mov dword [ebp - 0xc0], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x35
mov ecx, esp
mov dword [ebp - 0xb8], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x36
mov ecx, esp
mov dword [ebp - 0xb0], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x37
mov ecx, esp
mov dword [ebp - 0xac], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x38
mov ecx, esp
mov dword [ebp - 0xbc], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x39
mov ecx, esp
mov dword [ebp - 0xc4], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x3a
mov ecx, esp
mov dword [ebp - 0xb4], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x3b
mov ecx, esp
mov dword [ebp - 0x38], esp
push ebx
call fcn.00407621
sub esp, 0x10
mov byte [ebp - 4], 0x3c
mov ecx, esp
mov dword [ebp - 0x20], esp
push 3
push 3
call fcn.0040435f
mov byte [ebp - 4], 0x3d
lea ecx, [esi + 0x30]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_short_int_const____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::c_str_void_const]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00405098
lea eax, [ebp - 0x70]
lea ecx, [esi + 0xf0]
push eax
mov byte [ebp - 4], 0x3e
call fcn.0040fb7a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x40
push ecx
mov ecx, eax
call fcn.0040f555
mov ebx, eax
push dword [ebx + 4]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x41
push eax
call fcn.00402ef7
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x40
call fcn.00407833
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x70]
call fcn.0040518e
xor ebx, ebx
cmp dword [ebp - 0x34], ebx
je 0x4071ac
push ebx
push ebx
push 0x501
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
cmp dword [ebp - 0x60], ebx
je 0x4071d8
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x94], esp
push 3
push 1
call fcn.0040435f
lea ecx, [ebp - 0x64]
call fcn.00410088
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push 0x48f
push dword [esi + 0x120]
call edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x20
call fcn.00407833
push 1
lea ecx, [ebp - 0x30]
pop edi
mov byte [ebp - 4], 0xf
push edi
call fcn.00402a6c
push edi
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00402a6c
push edi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.00402a6c
and byte [ebp - 4], 0
push edi
lea ecx, [ebp - 0x84]
call fcn.00402a6c
jmp 0x407307
push dword [0x41b218]
lea eax, [ebp - 0x108]
push dword [0x41b1b4]
push eax
call fcn.00408c15
add esp, 0xc
push eax
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, 0x413544
mov dword [ebp - 0xe4], esi
push edi
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0x1d
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, [ebp - 0xe4]
lea ecx, [ebp - 0x160]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::runtime_error_const__]
lea eax, [ebp - 0x160]
push 0x417868
push eax
mov dword [ebp - 0x160], esi
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x17c]
push eax
mov byte [ebp - 4], 0x43
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::runtime_error_const__]
lea eax, [ebp - 0x17c]
push 0x417868
push eax
mov dword [ebp - 0x17c], 0x413544
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x1a8]
call fcn.0040768b
mov eax, 0x407301
ret
mov eax, dword [esi + 0xf0]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xf0]
push 0
call dword [eax + 0xc]
call dword [sym.imp.ole32.dll_CoUninitialize]
and dword [ebp - 0x88], 0
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
call dword [sym.imp.MSVCRT.dll_clock]
sub eax, dword [ebp - 0x90]
cmp dword [ebp - 0x88], 0x103
jne 0x40736a
test eax, eax
jle 0x40736a
mov ecx, 0x1388
cmp eax, ecx
jae 0x40736a
sub ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
leave
ret