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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51c79b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x34], ebp
push str..SimWritePacket.cpp
push 0x108
mov dword [esp + 0x24], 0
mov ecx, dword [0x5b6bb0]
push 0x53b210
call fcn.00402490
mov eax, dword [ebp + 0x90]
mov ecx, dword [eax + 0x260]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp + 0x44]
mov edi, dword [eax]
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], esi
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x2c]
test esi, esi
je 0x411204
cmp esi, eax
je 0x41120a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, ebx
je 0x4114e5
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test esi, esi
jne 0x4112bf
call ebx
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x41122b
call ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0xc0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
test esi, esi
jne 0x4112c6
call ebx
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x411259
call ebx
mov ebx, dword [edi + 0x10]
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1a], 0
test esi, esi
jne 0x4112ca
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, dword [esi + 0x18]
jne 0x41127b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0xc]
push 0
push 0x5b00f4
push 0x5b0134
push 0
push eax
call sub.MSVCR90.dll___RTDynamicCast
add esp, 0x14
cmp dword [esp + 0x30], 4
mov dword [esp + 0x20], eax
je 0x4112ce
movzx ecx, word [ebx]
push ecx
mov ecx, eax
call fcn.00408580
movzx edx, ax
push edx
push 0
push ebx
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov dword [esp + 0x24], eax
jmp 0x4112d6
mov eax, dword [esi]
jmp 0x411224
mov eax, dword [esi]
jmp 0x411252
mov esi, dword [esi]
jmp 0x411270
mov dword [esp + 0x24], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x6c]
lea esi, [ebp + 0x4c]
push ecx
mov ecx, esi
call fcn.004f7070
mov edi, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov esi, dword [esi]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], eax
test edi, edi
je 0x411304
cmp edi, esi
je 0x41130e
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call esi
jmp 0x411314
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x4c], ecx
je 0x41133f
test edi, edi
jne 0x411373
call esi
mov edx, dword [esp + 0x4c]
cmp edx, dword [edi + 0x18]
jne 0x41132f
call esi
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x1b], 1
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x74]
lea esi, [ebp + 0x6c]
push eax
mov ecx, esi
call fcn.004110e0
mov edi, dword [eax]
mov ecx, dword [esi + 0x18]
mov ebp, dword [eax + 4]
mov esi, dword [esi]
mov dword [esp + 0x64], ecx
test edi, edi
je 0x411369
cmp edi, esi
je 0x411377
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call esi
jmp 0x41137d
mov edi, dword [edi]
jmp 0x411324
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, dword [esp + 0x64]
je 0x4113a1
test edi, edi
jne 0x41139d
call esi
cmp ebp, dword [edi + 0x18]
jne 0x411390
call esi
mov edi, dword [ebp + 0x10]
mov ebp, dword [ebp + 0x14]
mov byte [esp + 0x1a], 1
jmp 0x4113a9
mov edi, dword [edi]
jmp 0x411389
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
cmp dword [esp + 0x24], 0
jl case.default.0x4113c1
mov eax, dword [esp + 0x30]
cmp eax, 7
ja case.default.0x4113c1
jmp dword [eax*4 + 0x41152c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push edx
push ebp
push edi
push ebx
call fcn.004e2fa0
jmp case.default.0x4113c1
mov eax, 8
cmp ax, word [ebx]
jne 0x411482
push 0x74
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0xa0], 0
test esi, esi
je 0x41144a
mov ecx, dword [ebx + 8]
push ecx
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
or dword [esp + 0x1c], 1
lea edx, [esp + 0x78]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004e4ca0
push eax
mov ecx, esi
call fcn.00410df0
mov esi, eax
jmp 0x41144c
xor esi, esi
mov dword [esp + 0xa0], 0xffffffff
test byte [esp + 0x1c], 1
je 0x41146d
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, esi
call fcn.004f6710
mov ecx, esi
call fcn.004e5070
mov ecx, esi
call fcn.004f6830
cmp byte [esp + 0x1a], 0
jne 0x411490
cmp byte [esp + 0x1b], 0
je case.0x4113c1.5
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push edx
push ebp
push edi
push ebx
call fcn.004e2fa0
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00406650
jmp case.default.0x4113c1
mov dword [esp + 0x24], 0xc0040004
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x24]
mov eax, 0xa
mov dword [ebx + 8], ecx
lea ecx, [esp + 0x40]
mov word [ebx], ax
call fcn.004fcec0
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
jmp 0x4111f6
call fcn.004fa640
mov ecx, eax
call fcn.004f7100
mov ecx, dword [0x5b6bb0]
push 0
push str.eRetVal
push str..SimWritePacket.cpp
push 0x16a
push 0x53b210
call fcn.00402520
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret