Function at 0x411880
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42b06d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd90
mov eax, dword [0x435654]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0xda8], ebx
mov dword [esp + 0x14], eax
push 0xa
lea ecx, [esp + 0x38]
mov byte [esp + 0xdac], 2
call fcn.004204de
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x9a1]
mov byte [esp + 0x9a0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x399]
mov byte [esp + 0x398], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x191]
mov byte [esp + 0x190], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x295]
mov byte [esp + 0x294], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x799]
mov byte [esp + 0x798], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x89d]
mov byte [esp + 0x89c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
lea ecx, [esp + 0x798]
push eax
push 0x104
push ecx
push 1
push ebx
push ebx
mov byte [esp + 0xdc0], 3
mov dword [esp + 0x38], ebx
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
cmp eax, ebx
jne 0x4119c2
push ebx
push 0xffffffffffffffff
mov ecx, ebp
call fcn.0040cdb0
jmp 0x411ee4
mov eax, dword [ebp + 0x41c]
mov dword [esp + 0x20], 0x104
cmp eax, 1
je 0x4119df
cmp eax, 3
je 0x4119df
cmp eax, 4
jne 0x411a3c
lea ecx, [esp + 0x6c]
call fcn.00413350
lea edx, [esp + 0x20]
lea eax, [esp + 0x89c]
push edx
push eax
push ebx
lea ecx, [esp + 0x78]
mov byte [esp + 0xdb4], 4
call fcn.00413420
cmp eax, ebx
jne 0x411a2b
push ebx
push 0xffffffffffffffff
mov ecx, ebp
call fcn.0040cdb0
lea ecx, [esp + 0x6c]
mov byte [esp + 0xda8], 3
call fcn.00413410
jmp 0x411ee4
lea ecx, [esp + 0x6c]
mov byte [esp + 0xda8], 3
call fcn.00413410
mov edx, dword [esp + 0xdb4]
mov eax, dword [esp + 0xdb0]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00412820
test eax, eax
je 0x411ee4
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.004122a0
test eax, eax
je 0x411ee4
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov esi, eax
je 0x411e35
jmp 0x411a88
mov esi, dword [esp + 0x28]
mov edx, dword [0x435654]
mov dword [esp + 0x18], edx
push 0xa
lea ecx, [esp + 0x54]
mov byte [esp + 0xdac], 5
call fcn.004204de
mov ecx, dword [esi]
mov eax, esi
add eax, 8
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xdac], 6
call fcn.00424d04
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x9a4]
push 0x400
push eax
push str.CopyFiles
push ecx
call fcn.00406db0
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x411b15
lea ecx, [esp + 0x50]
mov byte [esp + 0xda8], 5
call fcn.00420552
lea ecx, [esp + 0x18]
mov byte [esp + 0xda8], 3
call fcn.00424c17
jmp 0x411e2b
xor ecx, ecx
xor esi, esi
mov dl, byte [esp + esi + 0x9a0]
cmp dl, 0x2c
jne 0x411b2e
mov byte [esp + ecx + 0x398], bl
jmp 0x411b35
mov byte [esp + ecx + 0x398], dl
cmp byte [esp + ecx + 0x398], bl
jne 0x411c1c
cmp ecx, ebx
je 0x411c26
lea edx, [esp + 0x398]
push edx
call fcn.00406e90
mov al, byte [esp + 0x39c]
add esp, 4
cmp al, 0x40
jne 0x411bff
mov ecx, dword [esp + 0xdbc]
lea eax, [esp + 0x399]
push eax
call fcn.004205e6
lea ecx, [esp + 0x798]
push ecx
mov ecx, dword [esp + 0xdc8]
call fcn.004205e6
mov ecx, dword [esp + 0xdc0]
lea edx, [esp + 0x399]
push edx
call fcn.004205e6
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x39d]
push ecx
push edx
mov ecx, ebp
call fcn.004120b0
test eax, eax
je 0x411ec2
mov ecx, dword [esp + 0xdb8]
lea eax, [esp + 0x399]
push ebx
push eax
lea edx, [esp + 0x94]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov ecx, ebp
call fcn.0040c4a0
lea ecx, [esp + 0x2c]
call fcn.00424c17
mov eax, dword [esp + 0x20]
xor ecx, ecx
jmp 0x411c1d
cmp al, bl
je 0x411c14
lea ecx, [esp + 0x398]
push ecx
lea ecx, [esp + 0x54]
call fcn.004205e6
mov eax, dword [esp + 0x20]
xor ecx, ecx
jmp 0x411c1d
inc ecx
inc esi
cmp esi, eax
jbe 0x411b19
mov eax, dword [esp + 0x54]
cmp eax, ebx
mov ebp, eax
je 0x411e05
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea ecx, [esp + 0x18]
push eax
call fcn.00424d04
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push ebx
push eax
push str.DestinationDirs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0x17
je 0x411c7a
cmp eax, 0x101d3
je 0x411c7a
lea ecx, [esp + 0x798]
lea edx, [esp + 0x190]
push ecx
push edx
jmp 0x411c8a
lea eax, [esp + 0x89c]
lea ecx, [esp + 0x190]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x9a4]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x411e9b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x294]
xor esi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov cl, byte [esp + edi + 0x9a0]
lea edx, [esp + eax + 0x398]
cmp cl, 0x2c
mov byte [edx], cl
jne 0x411d0e
cmp esi, ebx
jne 0x411def
mov byte [edx], bl
lea edx, [esp + 0x398]
lea eax, [esp + 0x294]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 1
xor eax, eax
jmp 0x411df0
cmp cl, bl
jne 0x411def
cmp eax, ebx
je 0x411dfd
lea ecx, [esp + 0x398]
push ecx
call fcn.00406e90
mov al, byte [esp + 0x39c]
add esp, 4
cmp al, bl
je 0x411db7
mov ecx, dword [esp + 0xdbc]
lea edx, [esp + 0x398]
push edx
call fcn.004205e6
mov ecx, dword [esp + 0xdc4]
lea eax, [esp + 0x190]
push eax
call fcn.004205e6
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x39c]
push edx
push eax
call fcn.004120b0
test eax, eax
je 0x411ec2
mov edx, dword [esp + 0xdb8]
lea ecx, [esp + 0x398]
push ebx
push ecx
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0040c4a0
lea ecx, [esp + 0x30]
call fcn.00424c17
cmp esi, ebx
je 0x411dd5
mov ecx, dword [esp + 0xdc0]
lea edx, [esp + 0x294]
push edx
call fcn.004205e6
xor esi, esi
xor eax, eax
jmp 0x411df0
mov ecx, dword [esp + 0xdc0]
lea eax, [esp + 0x398]
push eax
call fcn.004205e6
xor esi, esi
xor eax, eax
jmp 0x411df0
inc eax
mov ecx, dword [esp + 0x20]
inc edi
cmp edi, ecx
jbe 0x411ccd
cmp ebp, ebx
jne 0x411c34
lea ecx, [esp + 0x50]
mov byte [esp + 0xda8], 5
call fcn.00420552
lea ecx, [esp + 0x18]
mov byte [esp + 0xda8], 3
call fcn.00424c17
mov ebp, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jne 0x411a84
lea ecx, [esp + 0x34]
mov byte [esp + 0xda8], 2
call fcn.00420552
lea ecx, [esp + 0x14]
mov byte [esp + 0xda8], 1
call fcn.00424c17
lea ecx, [esp + 0x1c]
mov byte [esp + 0xda8], bl
call fcn.00424c17
lea ecx, [esp + 0x10]
mov dword [esp + 0xda8], 0xffffffff
call fcn.00424c17
mov eax, 1
mov ecx, dword [esp + 0xda0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd9c
ret 0x18
mov esi, dword [esp + 0x24]
push 3
mov cx, word [esi + 0x4d6]
mov edx, dword [esi + 0x4d0]
push ecx
push edx
call fcn.00406fa0
add esp, 0xc
mov ecx, esi
push eax
push 2
call fcn.0040cdb0
lea ecx, [esp + 0x50]
mov byte [esp + 0xda8], 5
call fcn.00420552
lea ecx, [esp + 0x18]
mov byte [esp + 0xda8], 3
call fcn.00424c17
lea ecx, [esp + 0x34]
mov byte [esp + 0xda8], 2
call fcn.00420552
lea ecx, [esp + 0x14]
mov byte [esp + 0xda8], 1
call fcn.00424c17
lea ecx, [esp + 0x1c]
mov byte [esp + 0xda8], bl
call fcn.00424c17
lea ecx, [esp + 0x10]
mov dword [esp + 0xda8], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x411e80