Function at 0x43e220
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b563
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 4], 0
call fcn.00402270
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x230]
call fcn.0042eca0
mov byte [ebp - 4], 1
mov eax, dword [0x64065c]
and eax, 0xf
cmp eax, 2
jb 0x43e325
lea ecx, [ebp + 8]
call fcn.00406190
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x43e2a6
mov dword [ebp - 0x25c], 0
jmp 0x43e30e
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x43e2ce
mov dword [ebp - 0x260], 0
jmp 0x43e302
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x264], esp
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.00402280
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x25c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00405f60
jmp 0x43e3f5
push 0x5f5f78
lea edx, [ebp + 8]
push edx
call fcn.00407ad0
add esp, 8
movzx eax, al
test eax, eax
je 0x43e34c
mov dword [ebp - 0x268], 0x5f5f7c
jmp 0x43e3e3
lea ecx, [ebp + 8]
call fcn.00406190
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x43e36f
mov dword [ebp - 0x26c], 0
jmp 0x43e3d7
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x43e397
mov dword [ebp - 0x270], 0
jmp 0x43e3cb
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x274], esp
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x274]
push edx
call fcn.00402280
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
push edx
lea ecx, [ebp - 0x230]
call fcn.00405f60
push 0x103
lea eax, [ebp - 0x22c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], 0
je 0x43e442
cmp dword [ebp - 0x18], 0x7a
je 0x43e442
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5f5f80
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x43e46d
push 0x208
lea eax, [ebp - 0x22c]
push eax
call fcn.004020c0
add esp, 8
push 0x103
push 0x5f5fa4
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43e4b1
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.0042ecc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004060d0
mov eax, dword [ebp - 0x248]
jmp 0x43e6da
mov byte [ebp - 0x244], 0
xor eax, eax
mov dword [ebp - 0x243], eax
mov dword [ebp - 0x23f], eax
mov byte [ebp - 0x23b], al
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x43e4e7
mov dword [ebp - 0x278], 0
jmp 0x43e54b
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3fffffff
jle 0x43e50c
mov dword [ebp - 0x27c], 0
jmp 0x43e53f
mov eax, dword [ebp - 0x14]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x280], esp
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x280]
push eax
call fcn.004022d0
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x278], ecx
mov edx, dword [ebp - 0x278]
push edx
push 0xa
lea eax, [ebp - 0x244]
push eax
push 0x59aaa2
push 0x5f5fcc
push 0x5f5fd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x43e643
lea ecx, [ebp + 8]
call fcn.00406190
mov dword [ebp - 0x284], eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x288], ecx
mov edx, dword [ebp - 0x288]
mov al, byte [edx]
mov byte [ebp - 0x289], al
mov ecx, dword [ebp - 0x284]
cmp al, byte [ecx]
jne 0x43e5f0
cmp byte [ebp - 0x289], 0
je 0x43e5e4
mov edx, dword [ebp - 0x288]
mov al, byte [edx + 1]
mov byte [ebp - 0x28a], al
mov ecx, dword [ebp - 0x284]
cmp al, byte [ecx + 1]
jne 0x43e5f0
add dword [ebp - 0x288], 2
add dword [ebp - 0x284], 2
cmp byte [ebp - 0x28a], 0
jne 0x43e592
mov dword [ebp - 0x290], 0
jmp 0x43e5fb
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0x290], edx
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
jne 0x43e643
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.0042ecc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004060d0
mov eax, dword [ebp - 0x24c]
jmp 0x43e6da
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004027c0
push eax
push 0x5f5fdc
push 0x5f5fe4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x43e6ac
push str.ERROR:_ChangeUsbStateFile_failed_n
push str.CNetCmdConfigMgr::ChangeUsbStateFile
call fcn.0040c230
add esp, 8
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.0042ecc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004060d0
mov eax, dword [ebp - 0x250]
jmp 0x43e6da
mov dword [ebp - 0x254], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.0042ecc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004060d0
mov eax, dword [ebp - 0x254]
lea esp, [ebp - 0x298]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret 0x1c