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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5737f2
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5e6044]
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 [0x585610]
push 0x584f5c
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0x14], al
call fcn.00402a60
push 0x584f5c
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.00402a60
push 0x584f5c
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.00402a60
push 0x584f5c
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.00402a60
mov byte [ebp - 4], 3
call fcn.004233b1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40319a
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 0x4031d8
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.00556768
add esp, 8
test eax, eax
js 0x403714
cmp eax, dword [esi - 8]
jg 0x403714
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x5c
push esi
mov word [esi + eax*2], cx
call fcn.0054f73a
add esp, 8
test eax, eax
jne 0x403220
or eax, 0xffffffff
jmp 0x403224
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004038b0
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 0x403269
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.0042c3ad
push dword [ebp - 0x214]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebx + 0x508]
push str.ECCLevel
push 0x5856a0
call edi
push dword [ebp - 0x214]
add ebx, 0x50c
push dword [ebx]
push str.Scale
push 0x5856a0
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 0x40334b
push 5
mov ecx, edi
call fcn.00402700
push dword [ebp - 0x218]
push 5
push dword [edi]
push 0x5856b4
push str.ECCLevel
push 0x5856a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [edi]
test eax, eax
jne 0x403374
xor ecx, ecx
jmp 0x40338a
push dword [eax - 8]
push eax
call fcn.00556768
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403714
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x403714
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 0x4033c3
push 0x10
mov ecx, ebx
call fcn.00402700
push edi
push 0x10
push dword [ebx]
push 0x5856bc
push str.Scale
push 0x5856a0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx]
test eax, eax
jne 0x4033e7
xor ecx, ecx
jmp 0x4033fd
push dword [eax - 8]
push eax
call fcn.00556768
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x403714
mov eax, dword [ebx]
cmp ecx, dword [eax - 8]
jg 0x403714
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 0x403480
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403430
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x403480
lea eax, [ecx + ecx]
mov dword [ebp - 0x218], eax
call fcn.0054d100
mov ebx, esp
test ebx, ebx
je 0x403480
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 0x403482
xor ebx, ebx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403487
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x218], eax
call fcn.00556636
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 0x4034b0
lea eax, [ebp - 0x1c]
push 0x5856c0
push eax
call fcn.00556b86
mov edi, eax
push edi
push 1
push dword [ebp - 0x218]
push dword [ebp - 0x228]
call fcn.00556dd5
push edi
call fcn.00556a45
add esp, 0x1c
lea ecx, [ebp - 0x214]
push 0x5856c4
push 0x584f60
call fcn.00403e20
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x403566
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403511
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x403566
lea eax, [ecx + ecx]
mov dword [ebp - 0x228], eax
call fcn.0054d100
mov edi, esp
test edi, edi
je 0x403566
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 0x403568
xor edi, edi
push edi
call dword [ebp - 0x230]
push 0x584f5c
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.0042c3ad
push edi
lea eax, [ebp - 0x210]
push 0x5856cc
push eax
call fcn.004041f0
add esp, 0xc
lea eax, [ebp - 0x210]
mov ecx, str._null_
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4035e0
test dl, dl
je 0x4035dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4035e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4035c0
xor eax, eax
jmp 0x4035e5
sbb eax, eax
or eax, 1
test eax, eax
jle 0x403631
mov edi, dword [ebp - 0x224]
call fcn.004249a8
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 0x403622
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 0x40364f
cmp dword [0x5eb084], 0
push 0
push 0x40
je 0x403645
push 0x5856d8
jmp 0x40364a
push str.cant_create_bitmap
call fcn.004242a8
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 0x40366d
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 0x40368e
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 0x4036af
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 0x4036d0
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 0x4036f2
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.0054d0e6
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402180
int3