Function at 0x4030d0
Capabilities:
Read .ini file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573042
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5e5044]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x220], ebx
movq xmm0, qword [str.temp.txt]
lea ecx, [ebp - 0x214]
mov al, byte [0x584610]
push 0x583f5c
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0x14], al
call fcn.00402a50
push 0x583f5c
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.00402a50
push 0x583f5c
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.00402a50
push 0x583f5c
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.00402a50
mov byte [ebp - 4], 3
call fcn.00422a3c
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40318a
push 0x80004005
call fcn.00402180
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x21c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 4
jge 0x4031c8
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.00402700
mov esi, dword [ebp - 0x21c]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call fcn.00555f70
add esp, 8
test eax, eax
js 0x403704
cmp eax, dword [esi - 8]
jg 0x403704
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x5c
push esi
mov word [esi + eax*2], cx
call fcn.0054ef5a
add esp, 8
test eax, eax
jne 0x403210
or eax, 0xffffffff
jmp 0x403214
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004038a0
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.00402030
mov edx, dword [ebp - 0x22c]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403259
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.EnCodeQr.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.EnQrText
push edi
mov dword [ebp - 0x238], edi
call esi
push str.SetQrConFile
push edi
mov dword [ebp - 0x234], eax
call esi
mov esi, dword [ebp - 0x21c]
push str.Printer.ini
push esi
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x214]
push str._s_s
push eax
call fcn.00402630
push str.TempQr.bmp
push esi
lea eax, [ebp - 0x224]
push str._s_s
push eax
call fcn.00402630
add esp, 0x20
mov ecx, ebx
push 1
call fcn.0042bab1
push dword [ebp - 0x214]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebx + 0x508]
push str.ECCLevel
push 0x5846a0
call edi
push dword [ebp - 0x214]
add ebx, 0x50c
push dword [ebx]
push str.Scale
push 0x5846a0
call edi
mov edi, dword [ebp - 0x220]
mov ecx, 1
mov eax, dword [ebp - 0x214]
add edi, 0x508
mov dword [ebp - 0x218], eax
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 5
or eax, ecx
jge 0x40333b
push 5
mov ecx, edi
call fcn.00402700
push dword [ebp - 0x218]
push 5
push dword [edi]
push 0x5846b4
push str.ECCLevel
push 0x5846a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
test eax, eax
jne 0x403364
xor ecx, ecx
jmp 0x40337a
push dword [eax - 8]
push eax
call fcn.00555f70
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403704
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x403704
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
mov ecx, 1
mov eax, dword [ebx]
mov edi, dword [ebp - 0x214]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x10
or eax, ecx
jge 0x4033b3
push 0x10
mov ecx, ebx
call fcn.00402700
push edi
push 0x10
push dword [ebx]
push 0x5846bc
push str.Scale
push 0x5846a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx]
test eax, eax
jne 0x4033d7
xor ecx, ecx
jmp 0x4033ed
push dword [eax - 8]
push eax
call fcn.00555f70
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403704
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x403704
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebx]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x220]
mov edi, dword [eax + 0x478]
test edi, edi
je 0x403470
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403420
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x403470
lea eax, [ecx + ecx]
mov dword [ebp - 0x218], eax
call fcn.0054c920
mov ebx, esp
test ebx, ebx
je 0x403470
push 0
push 0
push dword [ebp - 0x218]
mov byte [ebx], 0
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
jmp 0x403472
xor ebx, ebx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403477
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x218], eax
call fcn.00555e3e
mov edi, eax
mov dword [ebp - 0x228], eax
add esp, 4
mov edx, ebx
sub edi, ebx
nop
mov cl, byte [edx]
mov byte [edx + edi], cl
inc edx
test cl, cl
jne 0x4034a0
lea eax, [ebp - 0x1c]
push 0x5846c0
push eax
call fcn.0055638e
mov edi, eax
push edi
push 1
push dword [ebp - 0x218]
push dword [ebp - 0x228]
call fcn.005565dd
push edi
call fcn.0055624d
add esp, 0x1c
lea ecx, [ebp - 0x214]
push 0x5846c4
push 0x583f60
call fcn.00403e40
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x403556
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403501
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x403556
lea eax, [ecx + ecx]
mov dword [ebp - 0x228], eax
call fcn.0054c920
mov edi, esp
test edi, edi
je 0x403556
push 0
push 0
push dword [ebp - 0x228]
mov byte [edi], 0
push edi
push 0xffffffffffffffff
push dword [ebp - 0x218]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove edi, ecx
jmp 0x403558
xor edi, edi
push edi
call dword [ebp - 0x230]
push 0x583f5c
push ebx
call dword [ebp - 0x234]
add esp, 0xc
mov edi, eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x220]
mov ecx, ebx
push 0
call fcn.0042bab1
push edi
lea eax, [ebp - 0x210]
push 0x5846cc
push eax
call fcn.00404210
add esp, 0xc
lea eax, [ebp - 0x210]
mov ecx, str._null_
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4035d0
test dl, dl
je 0x4035cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4035d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4035b0
xor eax, eax
jmp 0x4035d5
sbb eax, eax
or eax, 1
test eax, eax
jle 0x403621
mov edi, dword [ebp - 0x224]
call fcn.004240bc
push 0x2010
push 0
push 0
mov eax, dword [eax + 8]
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
je 0x403612
push eax
push 0
push 0x172
push dword [ebx + 0x4a8]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40363f
cmp dword [0x5ea084], 0
push 0
push 0x40
je 0x403635
push 0x5846d8
jmp 0x40363a
push str.cant_create_bitmap
call fcn.004239bc
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40365d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x23c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40367e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x240]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40369f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4036c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x214]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4036e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c90d
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402180
int3