Function at 0x404020
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x51f0cc
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x565fd0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebp
push esi
mov eax, dword [0x565fd0]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x280]
mov esi, ecx
lea ecx, [esp + 0x154]
mov dword [esp + 0x18], vtable.cnShiftDevice.0
call fcn.00415564
xor eax, eax
push 0x104
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], al
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov byte [esp + 0x3d], al
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x58]
push eax
call fcn.004fb1b0
add esp, 0xc
push 0x547cb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x27c], 0
call fcn.004021e0
mov byte [esp + 0x278], 1
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40410e
push 0x104
lea ecx, [esp + 0x10]
call fcn.00402610
mov edx, dword [esp + 0xc]
push str...config.ini
push 0x104
push edx
push str.Dashboard
push str.RegKey
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004f9c77
add esp, 8
test eax, eax
jl 0x4043ac
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx - 8]
jg 0x4043ac
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0xc]
mov byte [eax + ecx], 0
push 0x547bfc
lea ecx, [esp + 0x14]
call fcn.004021e0
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x284], 2
call fcn.004044a0
add esp, 0xc
mov byte [esp + 0x278], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x56d40c
call fcn.00404640
mov byte [esp + 0x278], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x278], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x56d410
call fcn.00404640
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404210
sub eax, edx
cmp eax, 0x10
jge 0x40423b
mov ecx, 0x10
sub ecx, eax
test ecx, ecx
jle 0x404237
push ecx
add eax, edi
push 0x20
push eax
call fcn.004fb1b0
add esp, 0xc
mov byte [edi + 0x10], 0
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404240
sub eax, edx
cmp eax, 8
jge 0x40426b
mov ecx, 8
sub ecx, eax
test ecx, ecx
jle 0x404267
push ecx
add eax, ebp
push 0x20
push eax
call fcn.004fb1b0
add esp, 0xc
mov byte [ebp + 8], 0
push str.USBSTORCdRomUSBModemMMC_Storage_____2.31
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402e30
push esi
lea edx, [esp + 0x1c]
push edx
call fcn.00402e30
mov eax, dword [0x547bd4]
mov ecx, dword [0x547bd8]
mov edx, dword [0x547bdc]
mov dword [esp + 0x38], eax
mov eax, dword [0x547be0]
push 0xfe
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [0x547be4]
mov dword [esp + 0x44], edx
mov edx, dword [0x547be8]
lea eax, [esp + 0x171]
push 0
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov byte [esp + 0x178], 0
call fcn.004fb1b0
add esp, 0xc
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00402800
test eax, eax
je 0x404301
lea eax, [esp + 0x16c]
push eax
call fcn.00402d10
mov esi, eax
test eax, eax
jne 0x40433b
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [edi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x25], eax
mov eax, dword [edi + 0xc]
lea esi, [esp + 0x18]
mov dword [esp + 0x29], ecx
mov dword [esp + 0x2d], edx
mov dword [esp + 0x31], eax
call fcn.004027a0
mov esi, eax
mov byte [esp + 0x278], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x278], 0xffffffff
lea ecx, [esp + 0x154]
mov dword [esp + 0x18], vtable.cnShiftDevice.0
call fcn.00415790
mov eax, esi
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004f96cd
add esp, 0x270
ret 4
push 0x80070057
call fcn.004020f0
int3