Function at 0x407af0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x411198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
or ebp, 0xffffffff
push edi
xor ebx, ebx
push ebp
push ebx
lea ecx, [esi + 0xaec]
call fcn.0040a250
lea eax, [esi + 0xa4c]
lea edi, [esi + 0xa70]
push eax
lea ecx, [esp + 0x1c]
push edi
push ecx
call sub.MFC42.DLL_operator_2
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.0040fc04
mov eax, dword [esp + 0x14]
mov byte [esp + 0x24], 1
cmp dword [eax - 8], ebx
je 0x407b8e
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x407b8e
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x18]
lea edi, [esi + 0xb04]
push edx
mov ecx, edi
call fcn.0040a950
test eax, eax
jne 0x407bd3
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push str.Class
push str.Version
mov byte [esp + 0x30], 2
call fcn.0040ac90
test eax, eax
jne 0x407c38
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebp
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.Firmware
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x407d0b
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push str.BootROMWrite
push str.Version
mov byte [esi + 0xb00], bl
call fcn.0040ac90
test eax, eax
je 0x407c8f
mov eax, dword [esp + 0x10]
push str.Enable
push eax
call ebp
add esp, 8
test eax, eax
jne 0x407c8f
or byte [esi + 0xb00], 1
lea ecx, [esp + 0x10]
push ecx
push str.FlashWrite
push str.Version
mov ecx, edi
call fcn.0040ac90
test eax, eax
je 0x407cc3
mov edx, dword [esp + 0x10]
push str.Enable
push edx
call ebp
add esp, 8
test eax, eax
jne 0x407cc3
or byte [esi + 0xb00], 2
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push str.Reset
push str.Version
mov dword [esi + 0xa6c], ebx
call fcn.0040ac90
test eax, eax
je 0x407d00
mov ecx, dword [esp + 0x10]
push str.Enable
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x407d00
mov dword [esi + 0xa6c], 1
mov ecx, esi
call fcn.00407600
test eax, eax
jne 0x407d4c
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push 1
mov ecx, esi
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret