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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x586e11
mov eax, dword fs:[0]
push eax
sub esp, 0xd38
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0xd30], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0xd48]
mov dword fs:[0], eax
xor edi, edi
push edi
mov ebx, ecx
push str.CInstCommon::SaveGetDrvFileNameInfo
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebx
call fcn.0044ca70
add esp, 0xc
push 0x618
lea eax, [esp + 0x728]
push edi
push eax
mov dword [esp + 0xd5c], edi
mov dword [esp + 0x1c], edi
call fcn.0055ca80
add esp, 0xc
push 0x410
lea ecx, [esp + 0x318]
push edi
push ecx
call fcn.0055ca80
add esp, 0xc
push 0x208
lea edx, [esp + 0x110]
push edi
push edx
call fcn.0055ca80
xor eax, eax
add esp, 0xc
mov word [esp + 0xd4], ax
push edi
mov eax, 0x5b69a4
lea esi, [esp + 0xd8]
mov dword [esp + 0x18], edi
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], edi
call fcn.00401d90
mov byte [esp + 0xd50], 1
xor ecx, ecx
push edi
mov eax, 0x5b69a4
lea esi, [esp + 0xf4]
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], edi
mov word [esp + 0xf4], cx
call fcn.00401d90
mov byte [esp + 0xd50], 2
test byte [0x60aea0], 1
jne 0x454aba
or dword [0x60aea0], 1
mov byte [esp + 0xd50], 3
call fcn.00458180
push 0x58b2e0
call fcn.005597b9
add esp, 4
mov byte [esp + 0xd50], 2
lea esi, [esp + 0x10c]
call fcn.00458990
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.GetDrvFileInfo.dat
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, esi
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00455410
mov byte [esp + 0xd50], 4
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
mov edx, dword [esp + eax + 0x38]
lea eax, [esp + eax + 0x2c]
and dl, 6
movsx ecx, dl
neg ecx
sbb ecx, ecx
not ecx
test eax, ecx
je 0x454c99
push edi
push 4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004552a0
mov eax, dword [ebx + 0x38]
mov esi, dword [eax]
cmp esi, eax
je 0x454c5f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi + 0xc]
push edi
push eax
or eax, 0xffffffff
lea ecx, [esp + 0xdc]
call fcn.00401b90
lea eax, [esi + 0x28]
push edi
push eax
or eax, 0xffffffff
lea ecx, [esp + 0xf8]
call fcn.00401b90
push 0x618
lea ecx, [esp + 0x728]
push edi
push ecx
call fcn.0055ca80
mov eax, dword [esp + 0xe0]
add esp, 0xc
cmp dword [esp + 0xe8], 8
jae 0x454b97
lea eax, [esp + 0xd4]
push eax
lea edx, [esp + 0x728]
push edx
call ebx
push edi
push 0x618
lea eax, [esp + 0x72c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004552a0
push 0x410
lea edx, [esp + 0x318]
push edi
push edx
call fcn.0055ca80
mov eax, dword [esp + 0xfc]
add esp, 0xc
cmp dword [esp + 0x104], 8
jae 0x454be8
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x318]
push eax
call ebx
push edi
push 0x410
lea ecx, [esp + 0x31c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004552a0
cmp byte [esi + 0x45], 0
jne 0x454c52
mov eax, dword [esi + 8]
cmp byte [eax + 0x45], 0
jne 0x454c30
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x454c52
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x454c24
jmp 0x454c52
mov eax, dword [esi + 4]
cmp byte [eax + 0x45], 0
jne 0x454c50
lea esp, [esp]
cmp esi, dword [eax + 8]
jne 0x454c50
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x454c40
mov esi, eax
mov eax, dword [esp + 0x18]
cmp esi, dword [eax + 0x38]
jne 0x454b41
lea eax, [esp + 0x30]
call fcn.00456060
test eax, eax
jne 0x454ca1
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x38]
lea ecx, [esp + ecx + 0x2c]
or eax, 2
cmp dword [ecx + 0x38], edi
jne 0x454c86
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x454ca1
push edi
call fcn.004418e0
jmp 0x454ca1
mov dword [esp + 0x10], 0x6e
mov edx, dword [esp + 0x10]
push edx
push str.return___08x
lea eax, [esp + 0x28]
push 2
push eax
call fcn.0044cd10
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x9c]
add esp, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + eax + 0x2c], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0xd50], 6
cmp dword [esp + 0x84], edi
je 0x454d1b
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x78]
cmp dword [edx], ecx
jne 0x454d1b
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov dword [edx], esi
mov edx, dword [esp + 0x50]
mov ecx, eax
mov dword [edx], ecx
sub eax, ecx
mov ecx, dword [esp + 0x60]
mov dword [ecx], eax
cmp byte [esp + 0x80], 0
je 0x454d2e
lea eax, [esp + 0x30]
call fcn.00456060
mov dword [esp + 0x30], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0xd50], 7
mov eax, dword [esp + 0x68]
mov ebx, eax
cmp eax, edi
je 0x454d94
mov edi, dword [eax]
test edi, edi
je 0x454d89
push 0
lea ecx, [esp + 0x20]
call fcn.005751db
mov eax, dword [edi + 4]
test eax, eax
je 0x454d69
cmp eax, 0xffffffff
jae 0x454d69
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x1c]
not esi
call fcn.00575203
and esi, edi
je 0x454d89
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.00461cb5
add esp, 4
xor edi, edi
lea ecx, [esp + 0x34]
mov byte [esp + 0xd50], 5
call fcn.00575234
mov byte [esp + 0xd50], 2
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x8c]
mov dword [esp + edx + 0x2c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.00574de7
mov ebx, 8
add esp, 4
cmp dword [esp + 0x104], ebx
jb 0x454df5
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00461cb5
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], edi
mov word [esp + 0xf0], dx
cmp dword [esp + 0xe8], ebx
jb 0x454e2b
mov eax, dword [esp + 0xd4]
push eax
call fcn.00461cb5
add esp, 4
xor ecx, ecx
mov word [esp + 0xd4], cx
lea ecx, [esp + 0x20]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], edi
mov dword [esp + 0xd50], 0xffffffff
call fcn.0044cc70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xd48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd30]
xor ecx, esp
call fcn.0055649d
mov esp, ebp
pop ebp
ret