Function at 0x402b20
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4152f2
push eax
mov eax, 0x681c
mov dword fs:[0], esp
call fcn.00414ad0
push ebx
mov ebx, dword [esp + 0x6830]
push ebp
push esi
push edi
mov esi, ecx
push ebx
mov dword [esp + 0x2c], esi
call fcn.00404320
add esp, 4
test eax, eax
jne 0x402b68
mov dword [esi + 0xec], eax
jmp 0x4034b4
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea eax, [esp + 0x98]
push 0x104
push eax
push 0x41f690
push str.Copyright
push str.FWDL_PRODUCTINFO
call ebp
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esi + 0xc4]
call sub.MFC42.DLL_CString::operator
push ebx
lea edx, [esp + 0x98]
push 0x104
push edx
push 0x41f690
push str.LogCreateAppend
push str.FWDL_PRODUCTINFO
call ebp
lea eax, [esp + 0x94]
push str.TRUE
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x402be5
mov dword [esi + 0xd0], 1
jmp 0x402bef
mov dword [esi + 0xd0], 0
push ebx
lea ecx, [esp + 0x98]
push 0x104
push ecx
push 0x41f690
push str.InputIPListCSVFile
push str.FWDL_PRODUCTINFO
call ebp
lea edx, [esp + 0x94]
lea ecx, [esi + 0xc8]
push edx
call sub.MFC42.DLL_CString::operator
push ebx
lea eax, [esp + 0x98]
push 0x104
push eax
push 0x41f690
push str.OutputIPListCSVFile
push str.FWDL_PRODUCTINFO
call ebp
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esi + 0xcc]
call sub.MFC42.DLL_CString::operator
push ebx
lea edx, [esp + 0x98]
push 0x104
push edx
push 0x41f690
push str.FirmwareFileNameColumn
push str.FWDL_PRODUCTINFO
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
test eax, eax
je 0x402c8b
lea eax, [esp + 0x94]
push eax
call edi
add esp, 4
jmp 0x402c90
mov eax, 0x5f
push ebx
lea ecx, [esp + 0x98]
push 0x104
push ecx
push 0x41f690
push str.FirmwareFileSizeColumn
push str.FWDL_PRODUCTINFO
mov dword [esi + 0xd4], eax
call ebp
test eax, eax
je 0x402cc8
lea edx, [esp + 0x94]
push edx
call edi
add esp, 4
jmp 0x402ccd
mov eax, 0x3c
mov dword [esi + 0xd8], eax
push ebx
lea eax, [esp + 0x98]
push 0x104
push eax
push 0x41f690
push str.FirmwareFileDateColumn
push str.FWDL_PRODUCTINFO
call ebp
test eax, eax
je 0x402d05
lea ecx, [esp + 0x94]
push ecx
call edi
add esp, 4
jmp 0x402d0a
mov eax, 0x3c
push ebx
lea edx, [esp + 0x98]
push 0x104
push edx
push 0x41f690
push str.FirmwareDeviceModelColumn
push str.FWDL_PRODUCTINFO
mov dword [esi + 0xdc], eax
call ebp
test eax, eax
je 0x402d42
lea eax, [esp + 0x94]
push eax
call edi
add esp, 4
jmp 0x402d47
mov eax, 0x55
push ebx
lea ecx, [esp + 0x98]
push 0x104
push ecx
push 0x41f690
push str.FirmwareFileVersionColumn
push str.FWDL_PRODUCTINFO
mov dword [esi + 0xe0], eax
call ebp
test eax, eax
je 0x402d7f
lea edx, [esp + 0x94]
push edx
call edi
add esp, 4
jmp 0x402d84
mov eax, 0x5a
lea ecx, [esp + 0x24]
mov dword [esi + 0xe4], eax
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x6834], edi
call sub.MFC42.DLL_CString::CString
push ebx
lea eax, [esp + 0x2a0]
push 0x6590
push eax
mov byte [esp + 0x6840], 1
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ecx, eax
mov dword [esp + 0x34], ecx
lea eax, [ecx - 1]
test eax, eax
jle 0x4033d9
jmp 0x402ddc
mov ecx, dword [esp + 0x34]
cmp edi, ecx
mov eax, edi
jge 0x402e16
mov cl, byte [esp + eax + 0x29c]
test cl, cl
je 0x402e03
mov edx, eax
sub edx, edi
inc eax
mov byte [esp + edx + 0x198], cl
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jl 0x402de2
jmp 0x402e16
mov ecx, eax
sub ecx, edi
inc eax
mov dword [esp + 0x30], eax
mov edi, eax
mov byte [esp + ecx + 0x198], 0
lea edx, [esp + 0x198]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x18]
push str.FWDL_PRODUCTINFO
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4033ca
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x98]
push 0x104
push ecx
push 0x41f690
push str.Device
push edx
call ebp
lea eax, [esp + 0x94]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x98]
push 0x104
push ecx
push 0x41f690
push str.Version
push edx
mov byte [esp + 0x684c], 2
call ebp
lea eax, [esp + 0x94]
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esp + 0x78]
mov byte [esp + 0x6838], 3
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6834], 4
push ecx
lea ecx, [esp + 0x14]
call fcn.00414486
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov byte [esp + 0x6834], 5
mov esi, dword [edx - 8]
test esi, esi
je 0x402fb3
push 0x2c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jge 0x402f2f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call fcn.00414486
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
jmp 0x402f96
lea ecx, [esp + 0x54]
push edi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6838], 6
call fcn.00414486
lea ecx, [esp + 0x54]
mov byte [esp + 0x6834], 5
call fcn.00414462
sub esi, edi
lea edx, [esp + 0x50]
dec esi
lea ecx, [esp + 0x10]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6838], 7
call fcn.00414486
lea ecx, [esp + 0x50]
mov byte [esp + 0x6834], 5
call fcn.00414462
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x74]
push eax
call sub.MFC42.DLL_CStringList::AddTail
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx - 8]
test esi, esi
jne 0x402f05
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x98]
push 0x104
push edx
push 0x41f690
push str.FileName
push eax
call ebp
push 0xa
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esp + 0x94]
mov byte [esp + 0x6834], 8
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov byte [esp + 0x6834], 9
mov esi, dword [edx - 8]
test esi, esi
je 0x4030c4
push 0x2c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jge 0x403040
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00414486
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
jmp 0x4030a7
lea ecx, [esp + 0x48]
push edi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6838], 0xa
call fcn.00414486
lea ecx, [esp + 0x48]
mov byte [esp + 0x6834], 9
call fcn.00414462
sub esi, edi
lea edx, [esp + 0x4c]
dec esi
lea ecx, [esp + 0x10]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6838], 0xb
call fcn.00414486
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6834], 9
call fcn.00414462
lea eax, [esp + 0x14]
lea ecx, [esp + 0x58]
push eax
call sub.MFC42.DLL_CStringList::AddTail
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx - 8]
test esi, esi
jne 0x403016
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x98]
push 0x104
push edx
push str.FALSE
push str.AllowDowngrade
push eax
call ebp
lea ecx, [esp + 0x94]
push str.TRUE
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
mov edx, dword [esp + 0x2c]
neg eax
sbb eax, eax
push edx
inc eax
mov dword [esp + 0x4c], eax
call sub.ProdInfo.dll_IDeviceObject_QueryInterface
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x4033f6
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x78]
test esi, esi
mov ebx, esi
mov ebp, edi
je 0x4031df
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0x14]
push eax
call fcn.00414486
test edi, edi
je 0x403152
mov eax, edi
mov edi, dword [edi]
add eax, 8
lea ecx, [esp + 0x1c]
push eax
call fcn.00414486
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
lea eax, [ecx + 0xf0]
push eax
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [esp + 0x20]
mov byte [esp + 0x6834], 0xc
push eax
call fcn.00404320
add esp, 4
test eax, eax
jne 0x403195
push ebx
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CStringList::RemoveAt
test ebp, ebp
je 0x4031c2
jmp 0x4031b8
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [ecx]
call dword [edx + 0x8c]
test eax, eax
jne 0x4031c2
push ebx
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CStringList::RemoveAt
test ebp, ebp
je 0x4031c2
push ebp
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CStringList::RemoveAt
lea ecx, [esp + 0x20]
mov ebx, esi
mov ebp, edi
mov byte [esp + 0x6834], 9
call fcn.00414462
test esi, esi
jne 0x40312c
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40334f
push 0xac
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x90], eax
test eax, eax
mov byte [esp + 0x6834], 0xd
je 0x403216
mov ecx, eax
call fcn.00401000
mov edi, eax
jmp 0x403218
xor edi, edi
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x6834], 9
mov eax, dword [ecx - 8]
cmp eax, 0xffffffff
jle 0x403240
cmp byte [eax + ecx - 1], 0x5f
jne 0x403240
dec eax
push 0x20
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::SetAt
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 4]
call fcn.00414486
lea edx, [esp + 0x24]
lea ecx, [edi + 8]
push edx
call fcn.00414486
mov eax, dword [esp + 0x64]
xor esi, esi
test eax, eax
jle 0x403331
mov eax, dword [esp + 0x28]
lea ebp, [edi + 0x2c]
lea ebx, [eax + 0xf0]
push esi
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CStringList::FindIndex
add eax, 8
lea ecx, [esp + 0x14]
push eax
call fcn.00414486
lea ecx, [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
push ebx
push edx
call sub.MFC42.DLL_operator_1
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
mov byte [esp + 0x6838], 0xe
call sub.MFC42.DLL_CStringList::AddTail
push esi
lea ecx, [esp + 0x78]
call sub.MFC42.DLL_CStringList::FindIndex
test eax, eax
jbe 0x4032cd
add eax, 8
lea ecx, [esp + 0x1c]
push eax
call fcn.00414486
jmp 0x403306
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
mov edx, dword [ecx]
push eax
call dword [edx + 0x90]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6838], 0xf
call fcn.00414486
lea ecx, [esp + 0x44]
mov byte [esp + 0x6834], 0xe
call fcn.00414462
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + 0x10]
call sub.MFC42.DLL_CStringList::AddTail
lea ecx, [esp + 0x38]
mov byte [esp + 0x6834], 9
call fcn.00414462
mov eax, dword [esp + 0x64]
inc esi
cmp esi, eax
jl 0x403275
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
mov dword [edi + 0x48], edx
push edi
lea ecx, [eax + 0x100]
mov eax, dword [eax + 0x108]
push eax
call sub.MFC42.DLL_CObArray::SetAtGrow
lea ecx, [esp + 0x14]
mov byte [esp + 0x6834], 8
call fcn.00414462
lea ecx, [esp + 0x58]
mov byte [esp + 0x6834], 5
call fcn.0041445c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6834], 4
call fcn.00414462
lea ecx, [esp + 0x74]
mov byte [esp + 0x6834], 3
call fcn.0041445c
lea ecx, [esp + 0x10]
mov byte [esp + 0x6834], 2
call fcn.00414462
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6834], 1
call fcn.00414462
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x683c]
mov esi, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x34]
lea eax, [ecx - 1]
cmp edi, eax
jl 0x402dd8
mov eax, dword [esi + 0x108]
test eax, eax
jle 0x403485
mov dword [esi + 0xec], 1
jmp 0x40348f
lea ecx, [esp + 0x14]
mov byte [esp + 0x6834], 8
call fcn.00414462
lea ecx, [esp + 0x58]
mov byte [esp + 0x6834], 5
call fcn.0041445c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6834], 4
call fcn.00414462
lea ecx, [esp + 0x74]
mov byte [esp + 0x6834], 3
call fcn.0041445c
lea ecx, [esp + 0x10]
mov byte [esp + 0x6834], 2
call fcn.00414462
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6834], 1
call fcn.00414462
lea ecx, [esp + 0x18]
mov byte [esp + 0x6834], 0
call fcn.00414462
lea ecx, [esp + 0x24]
mov dword [esp + 0x6834], 0xffffffff
call fcn.00414462
xor eax, eax
jmp 0x4034b9
mov dword [esi + 0xec], 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x6834], 0
call fcn.00414462
lea ecx, [esp + 0x24]
mov dword [esp + 0x6834], 0xffffffff
call fcn.00414462
mov eax, 1
mov ecx, dword [esp + 0x682c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6828
ret 4