Function at 0x4105f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585fe6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5fcfe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.0041b1fd
mov edi, eax
test edi, edi
je 0x410834
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
call fcn.0041b1fd
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41083e
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x597998]
mov ecx, dword [ebp - 0x10]
call edi
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ecx], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 0x18], 1
jge 0x4106b0
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0040b0e0
mov esi, dword [ebp - 0x14]
push dword [ebx + 0xdc]
push 0x104
push esi
push 0x5dd330
push dword [ebp + 0xc]
push str.Mapping
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or ebx, 0xffffffff
test eax, eax
je 0x4107ae
push 0
push 0
push 0
push 0
mov edx, esi
lea ecx, [ebx + 3]
lfence
call fcn.00409a40
mov edi, eax
add esp, 0x10
cmp edi, 1
je 0x4106fd
test edi, edi
jne 0x410719
push 0
push 0
push 0
push 0
mov edx, esi
mov ecx, 4
lfence
call fcn.00409a40
add esp, 0x10
mov edi, eax
push dword [esi - 8]
push esi
call fcn.00566c42
add esp, 8
test eax, eax
js 0x41082a
cmp eax, dword [esi - 8]
jg 0x41082a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, 1
je 0x4107f8
test edi, edi
je 0x4107f8
mov ecx, dword [ebp - 0x10]
lea edx, [esi - 0x10]
mov edi, dword [ecx]
sub edi, 0x10
cmp edx, edi
je 0x4107ae
cmp dword [edi + 0xc], 0
jl 0x4107ed
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4107ed
push edx
call fcn.0040a8a0
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4107a6
lfence
mov ebx, dword [edi]
push edi
mov edx, dword [ebx]
mov edi, dword [edx + 4]
mov ecx, edi
call dword [0x597998]
mov ecx, ebx
call edi
mov eax, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4107d6
lfence
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [esi - 0xc]
push esi
call fcn.0040b2c0
jmp 0x4107ae
mov edi, dword [ebp - 0x1c]
push 0x1e
add edi, 0x628
push str.An_invalid_mapping_to_printer
mov ecx, edi
call fcn.0040b2c0
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.0040a7b0
push 0x2e
push str._was_found._Please_contact_your_administrator.
mov ecx, edi
call fcn.0040a7b0
jmp 0x4107ae
push 0x80070057
call fcn.0040b400
push 0x80004005
call fcn.0040b400
push 0x80004005
call fcn.0040b400
int3