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

Disassembly:
push 0xffffffffffffffff
push 0x4c5a49
mov eax, dword fs:[0]
push eax
sub esp, 0x714
mov eax, dword [0xc18374]
xor eax, esp
mov dword [esp + 0x710], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xc18374]
xor eax, esp
push eax
lea eax, [esp + 0x728]
mov dword fs:[0], eax
mov esi, dword [esp + 0x738]
mov ebp, dword [esp + 0x73c]
xor ebx, ebx
mov dword [esp + 0x18], ebp
cmp esi, ebx
je 0x4a6787
cmp ebp, ebx
jne 0x4a679c
push 0x21
push str....._flashtoolHostWinDeviceConn.cpp
push str.NULL___p_arg__NULL___p_result
call dword [sym.imp.MSVCR90.dll__wassert]
add esp, 0xc
mov edi, dword [esi + 4]
push 0x60c
lea eax, [esp + 0x110]
push ebx
push eax
mov byte [esp + 0x23], bl
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
lea ecx, [esp + 0x40]
call fcn.004a66c0
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x48]
mov dword [esp + 0x730], ebx
sar ecx, 2
test ecx, ecx
ja 0x4a67e7
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0xf0]
mov dword [esp + 0x1c], edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x730], 1
call fcn.0043d070
xor edi, edi
mov byte [esp + 0x730], 2
cmp dword [esi + 4], edi
jbe 0x4a69db
xor ebp, ebp
mov dword [esp + 0x20], edi
jmp 0x4a6830
push str.PID_
lea ecx, [esp + 0xbc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, eax
push str.VID_
lea ecx, [esp + 0xd8]
mov byte [esp + 0x734], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esi]
mov edx, dword [ecx + ebp + 4]
push edx
push eax
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0x73c], 4
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push edi
push eax
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x748], 5
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [esi]
mov ecx, dword [edx + ebp]
push ecx
push eax
lea edx, [esp + 0xbc]
push edx
mov byte [esp + 0x754], 6
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x24
push eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x734], 7
call dword [0x4dc250]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x730], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x64]
mov byte [esp + 0x730], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x80]
mov byte [esp + 0x730], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x730], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x730], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x28]
call fcn.004468e0
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x4a6969
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
cmp dword [edx + edi + 0x18], 0x10
jb 0x4a697a
mov edi, dword [edx + edi + 4]
jmp 0x4a697e
lea edi, [edx + edi + 4]
mov eax, dword [esp + 0x1c]
mov dword [eax + ebx*4], edi
mov ecx, dword [esi]
mov eax, dword [ecx + ebp + 8]
mov edi, str.port_guid_interface
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x4a69b0
test cl, cl
je 0x4a69ac
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x4a69b0
add eax, 2
add edi, 2
test cl, cl
jne 0x4a6990
xor eax, eax
jmp 0x4a69b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
mov byte [esp + ebx + 0x718], al
inc ebx
add edx, 0x1c
add ebp, 0xc
mov dword [esp + 0x20], edx
cmp ebx, dword [esi + 4]
jb 0x4a6830
mov ebp, dword [esp + 0x18]
xor edi, edi
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x718]
mov dword [esp + 0x60], edx
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
sub esp, 8
mov dword [esp + 0x64], ecx
fild dword [esp + 0x20]
mov ecx, dword [ebp + 0x200]
lea edx, [esp + 0x114]
lea eax, [esp + 0x5c]
fstp qword [esp]
push ecx
push edx
push eax
call sub.Flashtoollib.dll_Ordinal_168
cmp eax, edi
jne 0x4a6a6e
lea eax, [esp + 0x114]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a6a40
lea eax, [esp + 0x514]
lea edx, [ebp + 0x100]
mov ecx, eax
sub edx, ecx
jmp 0x4a6a60
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a6a60
mov bl, 1
jmp 0x4a6a72
mov bl, byte [esp + 0x17]
mov esi, dword [esp + 0x30]
mov byte [esp + 0x730], 8
cmp esi, edi
je 0x4a6aae
mov edi, dword [esp + 0x34]
cmp esi, edi
je 0x4a6aa3
lea ebx, [ebx]
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x4a6a90
mov esi, dword [esp + 0x30]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edi, edi
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0xf0]
mov byte [esp + 0x730], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x4a6aed
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x728]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x710]
xor ecx, esp
call fcn.004ac9a4
add esp, 0x720
ret