Function at 0x40b150
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43c351
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00411470
mov ecx, 0x32
xor eax, eax
lea edi, [esp + 0x34]
push 0xc8
rep stosd dword es:[edi], eax
mov ecx, 0x32
lea edi, [esp + 0x100]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x1d0], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40b1eb
lea edx, [esp + ecx + 0x33]
cmp byte [edx], 0x5c
je 0x40b1d3
inc eax
dec edx
cmp eax, ecx
jl 0x40b1c6
jmp 0x40b1eb
sub ecx, eax
lea edx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.0041e4b0
add esp, 0xc
mov edi, 0x44a8ec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xfc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x1d4]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0xfc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x450b1c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xfc]
mov ecx, ebx
push eax
and ecx, 3
push 0
push ebp
rep movsb byte es:[edi], byte [esi]
push str.SUPPORTED_USB_DEVICE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
mov al, byte [0x45053c]
test al, al
je 0x40b3a9
push 0x44a368
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x40b294
push eax
push eax
push str.Cant_Load_Kernel32.dll
call fcn.0043720f
push 0x44a348
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x40b2b2
push eax
push eax
push 0x44ac50
call fcn.0043720f
lea ecx, [esp + 0x20]
push ecx
call esi
lea ecx, [esp + 0x10]
call fcn.00411470
lea ecx, [esp + 0x10]
mov byte [esp + 0x1cc], 1
call fcn.004115a0
push str.SOFTWAREBEIYANGPORTNAME_
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.00411520
test eax, eax
jne 0x40b310
push eax
push str.SOFTWAREBEIYANGPORTNAME_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411730
add esp, 0xc
lea ecx, [esp + 0x10]
push str.SOFTWAREBEIYANGPORTNAME_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411520
push 0
push ebx
push ebp
lea ecx, [esp + 0x1c]
call fcn.00411650
lea ecx, [esp + 0x10]
call fcn.004115a0
push str.SOFTWAREBEIYANGPRINTERPORT_
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.00411520
test eax, eax
jne 0x40b363
push eax
push str.SOFTWAREBEIYANGPRINTERPORT_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411730
add esp, 0xc
lea ecx, [esp + 0x10]
push str.SOFTWAREBEIYANGPRINTERPORT_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411520
lea ecx, [esp + 0x10]
call fcn.004115a0
push 0x44a328
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x40b38a
push eax
push eax
push 0x44ac14
call fcn.0043720f
mov edx, dword [esp + 0x20]
push edx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esp + 0x1cc], 0
lea ecx, [esp + 0x10]
jmp 0x40b45f
lea ecx, [esp + 0x10]
call fcn.00411470
push str.SOFTWAREBEIYANGPORTNAME_
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov byte [esp + 0x1d4], 2
call fcn.00411520
test eax, eax
jne 0x40b3f7
push eax
push str.SOFTWAREBEIYANGPORTNAME_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411730
add esp, 0xc
lea ecx, [esp + 0x10]
push str.SOFTWAREBEIYANGPORTNAME_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411520
push 0
push ebx
push ebp
lea ecx, [esp + 0x1c]
call fcn.00411650
lea ecx, [esp + 0x10]
call fcn.004115a0
push str.SOFTWAREBEIYANGPRINTERPORT_
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.00411520
test eax, eax
jne 0x40b44a
push eax
push str.SOFTWAREBEIYANGPRINTERPORT_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411730
add esp, 0xc
lea ecx, [esp + 0x10]
push str.SOFTWAREBEIYANGPRINTERPORT_
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00411520
lea ecx, [esp + 0x10]
call fcn.004115a0
mov byte [esp + 0x1cc], 0
lea ecx, [esp + 0x10]
call fcn.004114d0
lea ecx, [esp + 0x24]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.004114d0
mov ecx, dword [esp + 0x1c4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c0
ret 8