Function at 0x40dd90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42ac5c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x96c
mov eax, dword [0x435654]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x26d]
mov byte [esp + 0x26c], bl
lea edx, [esp + 0x26c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x984], ebx
push ecx
push 0x104
stosw word es:[edi], ax
push edx
push 1
push ebx
push ebx
stosb byte es:[edi], al
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
cmp eax, ebx
jne 0x40de0f
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cdb0
jmp 0x40e2a5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x371]
mov byte [esp + 0x370], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x41c]
mov dword [esp + 0x18], 0x104
cmp eax, 1
je 0x40de46
cmp eax, 3
je 0x40de46
cmp eax, 4
jne 0x40dea1
lea ecx, [esp + 0x44]
call fcn.00413350
lea eax, [esp + 0x18]
lea ecx, [esp + 0x370]
push eax
push ecx
push ebx
lea ecx, [esp + 0x50]
mov byte [esp + 0x990], 1
call fcn.00413420
cmp eax, ebx
jne 0x40de91
push ebx
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cdb0
lea ecx, [esp + 0x44]
mov byte [esp + 0x984], bl
call fcn.00413410
jmp 0x40e2a5
lea ecx, [esp + 0x44]
mov byte [esp + 0x984], bl
call fcn.00413410
mov edx, dword [0x435654]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x990]
lea ecx, [esp + 0x14]
push eax
push str.__s_
push ecx
mov byte [esp + 0x990], 2
call fcn.00420183
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x998]
add esp, 0xc
lea edx, [esp + 0x57c]
mov ecx, esi
push 0x400
push edx
push eax
push ebp
call fcn.00412320
cmp eax, ebx
jne 0x40df1a
mov cx, word [esi + 0x4d6]
mov edx, dword [esi + 0x4d0]
push 3
push ecx
push edx
call fcn.00406fa0
add esp, 0xc
mov ecx, esi
push eax
push 2
call fcn.0040cdb0
jmp 0x40e295
lea eax, [esp + 0x57c]
push 0x2c
push eax
call fcn.00414d30
add esp, 8
cmp eax, ebx
je 0x40df32
mov byte [eax], bl
lea ecx, [esp + 0x57c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00424d54
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea ecx, [esp + 0x2c]
stosb byte es:[edi], al
call fcn.004204de
mov eax, dword [esp + 0x10]
push ebp
lea edx, [esp + 0x580]
push 0x400
push edx
push str.CopyFiles
push eax
mov byte [esp + 0x998], 3
call fcn.00406db0
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x40dfef
mov cx, word [esi + 0x4d6]
mov edx, dword [esi + 0x4d0]
push 3
push ecx
push edx
call fcn.00406fa0
add esp, 0xc
mov ecx, esi
push eax
push 2
call fcn.0040cdb0
lea ecx, [esp + 0x28]
mov byte [esp + 0x984], 2
call fcn.00420552
lea ecx, [esp + 0x14]
mov byte [esp + 0x984], bl
call fcn.00424c17
lea ecx, [esp + 0x10]
mov dword [esp + 0x984], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x40e242
xor ecx, ecx
xor esi, esi
mov al, byte [esp + esi + 0x57c]
cmp al, 0x2c
jne 0x40e004
mov byte [esp + ecx + 0x64], bl
jmp 0x40e008
mov byte [esp + ecx + 0x64], al
cmp byte [esp + ecx + 0x64], bl
jne 0x40e077
cmp ecx, ebx
je 0x40e081
lea eax, [esp + 0x64]
push eax
call fcn.00406e90
mov al, byte [esp + 0x68]
add esp, 4
cmp al, 0x40
jne 0x40e061
lea ecx, [esp + 0x65]
push ecx
mov ecx, dword [esp + 0x998]
call fcn.004205e6
mov ecx, dword [esp + 0x998]
lea edx, [esp + 0x26c]
push edx
call fcn.004205e6
mov ecx, dword [esp + 0x99c]
lea eax, [esp + 0x65]
push eax
call fcn.004205e6
xor ecx, ecx
jmp 0x40e078
cmp al, bl
je 0x40e073
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004205e6
xor ecx, ecx
jmp 0x40e078
inc ecx
inc esi
cmp esi, edi
jbe 0x40dff3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x169]
mov byte [esp + 0x168], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov ebp, eax
je 0x40e208
mov eax, ebp
mov ebp, dword [ebp]
add eax, 8
lea ecx, [esp + 0x10]
push eax
call fcn.00424d04
mov esi, dword [esp + 0x98c]
mov edx, dword [esp + 0x10]
push esi
push ebx
push edx
push str.DestinationDirs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0x17
je 0x40e0f2
cmp eax, 0x101d3
je 0x40e0f2
lea eax, [esp + 0x26c]
lea ecx, [esp + 0x168]
push eax
push ecx
jmp 0x40e102
lea edx, [esp + 0x370]
lea eax, [esp + 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x580]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x40e25d
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x474]
xor esi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
xor ecx, ecx
xor edi, edi
mov al, byte [esp + edi + 0x57c]
lea edx, [esp + ecx + 0x64]
cmp al, 0x2c
mov byte [edx], al
jne 0x40e17b
cmp esi, ebx
jne 0x40e1f2
lea eax, [esp + 0x64]
lea ecx, [esp + 0x474]
push eax
push ecx
mov byte [edx], bl
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 1
xor ecx, ecx
jmp 0x40e1f3
cmp al, bl
jne 0x40e1f2
cmp ecx, ebx
je 0x40e200
lea edx, [esp + 0x64]
push edx
call fcn.00406e90
mov al, byte [esp + 0x68]
add esp, 4
cmp al, bl
je 0x40e1bd
mov ecx, dword [esp + 0x994]
lea eax, [esp + 0x64]
push eax
call fcn.004205e6
lea ecx, [esp + 0x168]
push ecx
mov ecx, dword [esp + 0x99c]
call fcn.004205e6
cmp esi, ebx
je 0x40e1db
mov ecx, dword [esp + 0x99c]
lea edx, [esp + 0x474]
push edx
call fcn.004205e6
xor esi, esi
xor ecx, ecx
jmp 0x40e1f3
mov ecx, dword [esp + 0x99c]
lea eax, [esp + 0x64]
push eax
call fcn.004205e6
xor esi, esi
xor ecx, ecx
jmp 0x40e1f3
inc ecx
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jbe 0x40e144
cmp ebp, ebx
jne 0x40e0a9
lea ecx, [esp + 0x28]
mov byte [esp + 0x984], 2
call fcn.00420552
lea ecx, [esp + 0x14]
mov byte [esp + 0x984], bl
call fcn.00424c17
lea ecx, [esp + 0x10]
mov dword [esp + 0x984], 0xffffffff
call fcn.00424c17
mov eax, 1
mov ecx, dword [esp + 0x97c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x978
ret 0x14
mov esi, dword [esp + 0x1c]
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 + 0x28]
mov byte [esp + 0x984], 2
call fcn.00420552
lea ecx, [esp + 0x14]
mov byte [esp + 0x984], bl
call fcn.00424c17
lea ecx, [esp + 0x10]
mov dword [esp + 0x984], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x40e242