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

Disassembly:
sub esp, 0x4a0
mov eax, dword [0x496ee4]
xor eax, esp
mov dword [esp + 0x49c], eax
push ebx
push esi
mov esi, dword [esp + 0x4ac]
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0xa9]
push ebx
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xb0], bl
call sub.MSVCR90.dll_memset
push 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0047bd5c
add esp, 0x10
cmp eax, ebx
je 0x4578f5
lea ecx, [esp + 0x28]
mov dword [eax], ecx
mov dword [esp + 0x28], eax
jmp 0x4578f9
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x28]
call fcn.00455fa0
mov dword [esp + 0x3c], eax
xor eax, eax
cmp dword [esi + 0x18], 8
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov word [esp + 0xa1], ax
mov byte [esp + 0xa3], al
mov dword [esp + 0xc], ebx
jb 0x45797e
mov esi, dword [esi + 4]
jmp 0x457981
add esi, 4
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4579a8
mov dword [esp + 8], ebx
jmp 0x457c82
push edi
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
push esi
call fcn.0045fbb0
push 4
lea edx, [esp + 0xbc]
push edx
push esi
call fcn.0045fc40
add esp, 0x1c
cmp dword [esp + 0xa8], 0x4c44545a
jne 0x457c72
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff8
push esi
call fcn.0045fbb0
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0045fc40
add esp, 0x1c
test eax, eax
je 0x457c72
push 2
push 0xffffffffffffffff
push 0xfffffbf8
push esi
call fcn.0045fbb0
push 0x400
lea ecx, [esp + 0xbc]
push ecx
push esi
call fcn.0045fc40
add esp, 0x1c
test eax, eax
je 0x457c72
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x70]
call dword [0x47f374]
push str.
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
push 2
push 0xffffffffffffffff
push 0xfffffbf4
push esi
call fcn.0045fbb0
push 4
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0045fc40
add esp, 0x1c
test eax, eax
je 0x457c72
cmp dword [esp + 0x14], 0x64
jae 0x457c72
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ecx
push esi
call fcn.0045fbb0
add esp, 0x10
xor edi, edi
cmp dword [esp + 0x14], ebx
jbe 0x457aef
push 4
lea edx, [esp + 0x24]
push edx
push esi
call fcn.0045fc40
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0045fc40
mov eax, dword [esp + 0x34]
add esp, 0x18
cmp eax, ebx
je 0x457ae8
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
lea ecx, [ecx + eax - 1]
lea edx, [esp + 0x48]
mov dword [esp + 0x50], ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ebx
call fcn.00456600
inc edi
cmp edi, dword [esp + 0x14]
jb 0x457a95
cmp dword [esp + 0x44], ebx
je 0x457c72
mov eax, dword [esp + 0x18]
push ebx
push ebx
push eax
push esi
call fcn.0045fbb0
push esi
call fcn.0045fc70
mov ecx, dword [esp + 0x94]
push 4
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x30], ecx
call fcn.0045fc10
mov eax, dword [esp + 0x90]
add esp, 0x20
cmp dword [esp + 0x84], 0x10
jae 0x457b3c
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push eax
push esi
call fcn.0045fc10
add esp, 0xc
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], ebx
call fcn.00457090
mov edx, dword [esp + 0x48]
push 1
push 0x488764
push esi
mov dword [esp + 0x24], edx
call fcn.0045fc10
push 1
push 0x488765
push esi
call fcn.0045fc10
push 4
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0045fc10
push 4
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.0045fc10
push 4
lea edx, [esp + 0x48]
push edx
push esi
mov dword [esp + 0x50], ebx
call fcn.0045fc10
push 4
lea eax, [esp + 0x58]
push eax
push esi
call fcn.0045fc10
mov ecx, dword [esp + 0x8c]
mov eax, dword [ecx]
mov edi, dword [esp + 0x78]
mov ebp, eax
add esp, 0x48
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x44]
mov dword [esp + 0x6c], edx
cmp edi, ebx
je 0x457be2
cmp edi, dword [esp + 0x30]
je 0x457be8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, dword [esp + 0x6c]
je 0x457c3b
cmp edi, ebx
jne 0x457c37
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor edi, edi
cmp ebp, dword [edi + 0x14]
jne 0x457c05
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
push 0x18
add ebp, 8
push ebp
push esi
call fcn.0045fc10
push 8
lea eax, [esp + 0x9c]
push eax
push esi
call fcn.0045fc10
add esp, 0x18
lea ecx, [esp + 0x28]
call fcn.0044f700
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
jmp 0x457bd0
mov edi, dword [edi]
jmp 0x457bfa
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0045fc10
push 4
lea edx, [esp + 0x9c]
push edx
push esi
call fcn.0045fc10
mov eax, dword [str.5140599dd7a267faaa068b53199cf3f4]
push 0x20
push eax
push esi
call fcn.0045fc10
push esi
call fcn.0045fc70
add esp, 0x28
pop ebp
jmp 0x457c76
mov dword [esp + 0xc], ebx
pop edi
cmp esi, ebx
je 0x457c82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
call fcn.00449b50
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x68]
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 ecx, dword [esp + 0x4a4]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.0047bc8a
add esp, 0x4a0
ret