Function at 0x401b90
Capabilities:
Copy file
Create directory
Get common file path
Link many functions at runtime
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43b90c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c4
mov eax, dword [0x44bd9c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x8e4]
xor ebp, ebp
push ebx
mov dword [esp + 0x8e0], ebp
call fcn.0041da90
mov esi, dword [esp + 0x8f0]
add esp, 4
cmp esi, 2
je 0x401be7
cmp esi, 3
je 0x401be7
cmp esi, 4
jne 0x401c3f
push 0x44a394
push ebx
call fcn.0041da10
add esp, 8
test eax, eax
jne 0x402379
push 0x44a388
push ebx
call fcn.0041da10
add esp, 8
test eax, eax
jne 0x402379
push 0x44a380
push ebx
call fcn.0041da10
add esp, 8
test eax, eax
jne 0x402379
push 0x44a378
push ebx
call fcn.0041da10
add esp, 8
test eax, eax
jne 0x402379
cmp esi, 5
je 0x401c52
cmp esi, 6
je 0x401c52
cmp esi, 7
jne 0x40249f
push 0x44a394
push ebx
call fcn.0041da10
add esp, 8
test eax, eax
jne 0x401c9e
push 0x44a388
push ebx
call fcn.0041da10
add esp, 8
test eax, eax
jne 0x401c9e
push 0x44a380
push ebx
call fcn.0041da10
add esp, 8
test eax, eax
jne 0x401c9e
push 0x44a378
push ebx
call fcn.0041da10
add esp, 8
test eax, eax
je 0x40249f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x451]
mov byte [esp + 0x450], 0
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 + 0x34d]
mov byte [esp + 0x34c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x1c], 0
stosb byte es:[edi], al
mov al, byte [0x45053c]
test al, al
je 0x401dfb
push 0x44a368
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4503f0], eax
je 0x402eba
push 0x44a348
push eax
call ebp
mov ecx, dword [0x4503f0]
push 0x44a328
push ecx
mov dword [0x4503fc], eax
call ebp
mov dword [0x450400], eax
mov eax, dword [0x4503fc]
test eax, eax
je 0x401dfb
lea edx, [esp + 0x18]
push edx
call eax
cmp eax, 1
jne 0x401de9
lea eax, [esp + 0x34c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x34c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x450]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x450]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a2f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x794]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
push edx
call dword [0x450400]
mov eax, dword [0x4503f0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401e84
mov ecx, dword [0x4503f0]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402eba
lea edx, [esp + 0x34c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x34c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x450]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x450]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a2f8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x794]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x454]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
or esi, 0xffffffff
cmp eax, esi
jne 0x401f58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea edx, [esp + 0x28]
push 0
push edx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x401ed0
lea ecx, [esp + 0x10]
mov dword [esp + 0x8dc], esi
call fcn.0042fc20
xor eax, eax
jmp 0x40282f
or ecx, 0xffffffff
mov edi, 0x44a2dc
xor eax, eax
mov edx, dword [esp + 0x8f4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x24]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402eba
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
lea edi, [esp + 0x34c]
xor eax, eax
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a2b4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x7c0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x45053c]
mov ecx, edx
and ecx, 3
lea edx, [esp + 0x144]
rep movsb byte es:[edi], byte [esi]
test al, al
mov edi, 0x44a2ac
jne 0x40201a
mov edi, 0x44a2a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x248], al
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x144]
and ecx, 3
mov dword [esp + 0x1c], 0
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x249]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x248]
push eax
push 0x104
push ecx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
test eax, eax
jne 0x4020b6
push 0x44a28c
jmp 0x402ee6
mov edi, 0x44a288
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x248]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x45053c]
mov ecx, edx
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
je 0x4021b1
push 0x44a368
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4503f0], eax
je 0x402eba
push 0x44a348
push eax
call ebp
mov dword [0x4503fc], eax
mov eax, dword [0x4503f0]
push 0x44a328
push eax
call ebp
mov dword [0x450400], eax
mov eax, dword [0x4503fc]
test eax, eax
je 0x4021b1
lea ecx, [esp + 0x18]
push ecx
call eax
cmp eax, 1
jne 0x4021a0
lea edx, [esp + 0x248]
push 0
lea eax, [esp + 0x148]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
call dword [0x450400]
mov edx, dword [0x4503f0]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4021cb
mov eax, dword [0x4503f0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402eba
lea ecx, [esp + 0x248]
push 0
lea edx, [esp + 0x148]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
jne 0x40235c
mov eax, dword [0x44bd9c]
mov dword [esp + 0x14], eax
mov byte [esp + 0x8dc], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [esp + 0x18], eax
jne 0x402214
lea ecx, [esp + 0x14]
mov byte [esp + 0x8dc], 0
call fcn.0042fc20
mov dword [esp + 0x8dc], 0xffffffff
jmp 0x402d29
cmp eax, 5
jne 0x40223a
lea ecx, [esp + 0x14]
mov byte [esp + 0x8dc], 0
call fcn.0042fc20
mov dword [esp + 0x8dc], 0xffffffff
jmp 0x402d59
push 0x44a274
mov ecx, 0x4501e8
call fcn.004054a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x8f4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push 0x400
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x4022c6
mov byte [esp + 0x8dc], al
lea ecx, [esp + 0x14]
jmp 0x402eb5
mov edi, 0x44a160
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8dc], al
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
jmp 0x402eb5
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x402816
mov edi, 0x44a254
jmp 0x402ef2
mov al, byte [0x44a0d0]
mov dword [esp + 0x1c], ebp
test al, al
je 0x40239a
mov byte [0x44a0d0], 0
call fcn.00401380
test al, al
je 0x40249f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x249]
mov byte [esp + 0x248], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x248]
mov dword [esp + 0x1c], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x350]
push 0x104
push ecx
push 1
push ebp
push ebp
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
test eax, eax
jne 0x402423
push 0x44a28c
jmp 0x402ee6
mov edi, 0x44a288
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x350]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x350]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, ebp
jne 0x402816
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x554]
rep stosd dword es:[edi], eax
cmp byte [ebx], 0x30
je 0x402eba
cmp ebx, ebp
je 0x402eba
mov eax, dword [esp + 0x8e8]
cmp eax, 0x101d0
jne 0x402507
lea edx, [esp + 0x28]
lea eax, [esp + 0x44]
push edx
push 0x100
push eax
push 1
push ebp
push ebp
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
test eax, eax
jne 0x40270d
push 0x44a28c
jmp 0x402ee6
cmp eax, 0x101d1
jne 0x402538
lea eax, [esp + 0x28]
lea ecx, [esp + 0x44]
push eax
push 0x100
push ecx
push 1
push ebp
push ebp
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryA
test eax, eax
jne 0x40270d
push 0x44a240
jmp 0x402ee6
cmp eax, 0x101d2
jne 0x402561
lea eax, [esp + 0x44]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x402a6a
push 0x44a22c
jmp 0x402ee6
cmp eax, 0x64
jne 0x4025b7
lea eax, [esp + 0x44]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x402584
push 0x44a218
jmp 0x402ee6
mov edi, 0x44a210
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402a6a
cmp eax, 0x378
jne 0x4026ae
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x249]
mov byte [esp + 0x248], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x248]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24b]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x248]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a200
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x654]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40267b
lea edx, [esp + 0x44]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x44a288
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402a6a
cmp eax, 0x3e7
jne 0x40273b
lea eax, [esp + 0x28]
lea ecx, [esp + 0x44]
push eax
push 0x100
push ecx
push 1
push ebp
push ebp
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
test eax, eax
jne 0x4026df
push 0x44a28c
jmp 0x402ee6
mov edi, 0x44a1fc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x654]
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x402a6a
lea edx, [esp + 0x44]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x402a6a
cmp eax, 0x101d3
jne 0x402848
lea eax, [esp + 0x44]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x402764
push 0x44a22c
jmp 0x402ee6
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x144]
lea edx, [esp + 0x144]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x144]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a288
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x654]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x402a6a
mov dword [esp + 0x8dc], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0042fc20
mov eax, 1
mov ecx, dword [esp + 0x8d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8d0
ret
cmp eax, 0x101d4
jne 0x402ee1
lea edx, [esp + 0x44]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40289f
push 0x44a22c
mov ecx, 0x4501e8
call fcn.004054a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x8f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402eba
mov eax, dword [esp + 0x8ec]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 5
je 0x4028bf
cmp eax, 6
je 0x4028bf
cmp eax, 7
jne 0x40296d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x144]
lea edx, [esp + 0x144]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x144]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a288
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x654]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x148]
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x402816
mov edi, 0x44a1f4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x654]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x4029bc
lea edx, [esp + 0x44]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x144]
lea edx, [esp + 0x144]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
lea edi, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x144]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a288
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x144]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x654]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x148]
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x402816
lea edx, [esp + 0x554]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x554]
push 0x5c
push eax
call fcn.0041d9e0
mov byte [eax], 0
mov al, byte [0x45053c]
add esp, 8
lea edx, [esp + 0x554]
test al, al
mov edi, 0x44a1ec
jne 0x402aae
mov edi, 0x44a1e4
or ebp, 0xffffffff
xor eax, eax
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x554]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x44]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a288
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x8f0]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x402b9e
xor eax, eax
mov edi, 0x44a1e0
mov dword [esp + 0x30], eax
mov ecx, ebp
mov dword [esp + 0x34], eax
lea edx, [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x40], eax
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
mov ecx, ebp
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402c16
call edi
mov ecx, dword [0x44bd9c]
mov dword [esp + 0x1c], ecx
push eax
lea edx, [esp + 0x20]
push 0x44a1b8
push edx
mov byte [esp + 0x8e8], 3
call fcn.0042e7df
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8dc], 0
call fcn.0042fc20
cmp dword [esp + 0x8e8], 0x101d2
jne 0x402cd6
mov al, byte [0x45053c]
test al, al
je 0x402cd6
push 0x44a368
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4503f0], eax
je 0x402cbf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44a348
push eax
call esi
mov dword [0x4503fc], eax
mov eax, dword [0x4503f0]
push 0x44a328
push eax
call esi
mov dword [0x450400], eax
mov eax, dword [0x4503fc]
test eax, eax
je 0x402cd6
lea ecx, [esp + 0x18]
push ecx
call eax
cmp eax, 1
jne 0x402cb3
lea edx, [esp + 0x44]
push 0
lea eax, [esp + 0x558]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
call dword [0x450400]
mov edx, dword [0x4503f0]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402ced
mov eax, dword [0x4503f0]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x8dc], ebp
call fcn.0042fc20
xor eax, eax
jmp 0x40282f
lea ecx, [esp + 0x44]
push 0
lea edx, [esp + 0x558]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
jne 0x402ed5
mov eax, dword [0x44bd9c]
mov dword [esp + 0x20], eax
mov byte [esp + 0x8dc], 4
call edi
cmp eax, 0x20
mov dword [esp + 0x18], eax
jne 0x402d3c
lea ecx, [esp + 0x20]
mov byte [esp + 0x8dc], 0
call fcn.0042fc20
mov dword [esp + 0x8dc], ebp
lea ecx, [esp + 0x10]
call fcn.0042fc20
mov eax, 0x20
jmp 0x40282f
cmp eax, 5
jne 0x402d6c
lea ecx, [esp + 0x20]
mov byte [esp + 0x8dc], 0
call fcn.0042fc20
mov dword [esp + 0x8dc], ebp
lea ecx, [esp + 0x10]
call fcn.0042fc20
mov eax, 5
jmp 0x40282f
push 0x44a274
mov ecx, 0x4501e8
call fcn.004054a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x8f4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, ebp
lea eax, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x104
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push 0x400
push ecx
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x402df2
lea ecx, [esp + 0x20]
mov byte [esp + 0x8dc], al
call fcn.0042fc20
lea ecx, [esp + 0x10]
mov dword [esp + 0x8dc], 0xffffffff
call fcn.0042fc20
xor eax, eax
jmp 0x40282f
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
push 0x44a1cc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a160
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x4501e8
call fcn.004054a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [esp + 0x8dc], 0
lea ecx, [esp + 0x20]
call fcn.0042fc20
lea ecx, [esp + 0x10]
mov dword [esp + 0x8dc], 0xffffffff
call fcn.0042fc20
xor eax, eax
jmp 0x40282f
mov dword [esp + 0x8dc], ebp
jmp 0x402821
push 0x44a1bc
mov ecx, 0x4501e8
call fcn.004054a0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x8f4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402eba