Function at 0x40f8b4
Capabilities:
Create directory
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1b
push 0
push 0
dec ecx
jne 0x40f8bd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x40f8d6
add esp, 0xfffffff0
call fcn.00403378
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
call fcn.00403edc
lea eax, [ebp - 0xa0]
mov edx, dword [0x407c04]
call fcn.00404110
xor eax, eax
push ebp
push 0x4107b2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
call fcn.0040d95c
push ebp
push 0x410767
push dword fs:[0]
mov dword fs:[0], esp
call fcn.0040b088
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
je 0x40f94e
mov edx, 0x418a7c
mov eax, 0x418a78
call fcn.0040ae18
xor eax, eax
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], ebx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
push 0xa
push pe_nt_image_headers32
call sub.KERNEL32.DLL_lstrcatW
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], esi
mov byte [esi], 0xff
mov byte [esi + 1], 0x25
lea eax, [esi + 6]
mov dword [esi + 2], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
xor ecx, ecx
mov eax, 0x4107e8
call fcn.0040ce98
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, 0x4107e8
mov cl, 1
call fcn.0040ce98
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
je 0x40f9fa
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0x80000000
jb 0x40fa02
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00403c08
lea eax, [ebp - 0x20]
call fcn.00403b70
jmp 0x40fa02
lea eax, [ebp - 0x20]
call fcn.00403b70
lea edx, [ebp - 0xa8]
mov eax, 0x4107f4
call fcn.004070f0
push dword [ebp - 0xa8]
push 0x410804
push dword [ebp - 0x1c]
lea eax, [ebp - 0xa4]
mov edx, 3
call fcn.00403db4
mov eax, dword [ebp - 0xa4]
call fcn.00403eec
push eax
call fcn.0040cab0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], 0
je 0x40fa8e
lea edx, [ebp - 0xb0]
mov eax, 0x4107f4
call fcn.004070f0
push dword [ebp - 0xb0]
push 0x410804
push dword [ebp - 0x20]
lea eax, [ebp - 0xac]
mov edx, 3
call fcn.00403db4
mov eax, dword [ebp - 0xac]
call fcn.00403eec
push eax
call fcn.0040cab0
mov dword [ebp - 0x10], eax
jmp 0x40fa93
xor eax, eax
mov dword [ebp - 0x10], eax
push ebp
push 0x410744
push dword fs:[0]
mov dword fs:[0], esp
cmp dword [ebp - 0xc], 0
je 0x40fab8
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp dword [ebp - 0x10], 0
je 0x40fac9
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetCurrentThreadId
push ebp
push 0x410711
push dword fs:[0]
mov dword fs:[0], esp
push 0xffffffffffffffff
lea edx, [ebp - 0xb8]
mov eax, 0x410810
call fcn.004070f0
push dword [ebp - 0xb8]
push 0x410804
push dword [ebp - 0x1c]
lea eax, [ebp - 0xb4]
mov edx, 3
call fcn.00403db4
mov eax, dword [ebp - 0xb4]
call fcn.00403eec
push eax
call fcn.0040cda8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.0040f864
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 5], al
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
je 0x40fba8
cmp dword [ebp - 0x20], 0
je 0x40fba8
push 0xffffffffffffffff
lea edx, [ebp - 0xc0]
mov eax, 0x410810
call fcn.004070f0
push dword [ebp - 0xc0]
push 0x410804
push dword [ebp - 0x20]
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.00403db4
mov eax, dword [ebp - 0xbc]
call fcn.00403eec
push eax
call fcn.0040cda8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
call fcn.0040f864
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 5], al
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
jne 0x40fba8
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00403c08
push ebp
push 0x4106de
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
je 0x40ff7f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x18]
mov eax, ebx
call fcn.0040f63c
test al, al
je 0x40fbfd
mov dword [ebp - 0x3c], 0x770001
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
jmp 0x41076e
test byte [ebp + 8], 2
jne 0x40fc3e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, ebx
call fcn.0040f540
test al, al
jne 0x40fc3a
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00409f2c
cmp byte [ebp - 0xa0], 0
je 0x40fc34
cmp byte [ebp - 0x78], 0
jne 0x40fc3e
or dword [ebp + 8], 2
jmp 0x40fc3e
or dword [ebp + 8], 2
test byte [ebp + 8], 2
jne 0x40fc7e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, ebx
call fcn.0040f7e8
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x40ff8f
cmp dword [ebp - 0x20], 0
je 0x40ff8f
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00403c08
jmp 0x40ff8f
test byte [ebp + 8], 0x10
jne 0x40ff5f
test ebx, ebx
je 0x40fceb
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
jne 0x40fccb
lea edx, [ebp - 0xc8]
mov eax, 0x410824
call fcn.004070f0
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
mov dl, 1
call fcn.00407160
mov eax, dword [ebp - 0xc4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov edi, eax
jmp 0x40fced
mov eax, 0x410824
lea edx, [ebp - 0xcc]
call fcn.004070f0
mov eax, dword [ebp - 0xcc]
push eax
call sub.KERNEL32.DLL_ReleaseMutex
mov edi, eax
jmp 0x40fced
xor edi, edi
cmp ebx, edi
je 0x40ff3f
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
je 0x40fd25
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0x80000000
jae 0x40fd29
test ebx, ebx
je 0x40fd25
mov eax, ebx
call fcn.00407468
mov edx, eax
mov eax, ebx
call fcn.0040f7e8
test al, al
jne 0x40fd29
xor eax, eax
jmp 0x40fd2b
mov al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x40fd59
cmp dword [ebp - 0x20], 0
je 0x40fd4b
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.00403c08
push 0
push 0xa
call fcn.0040aed8
mov dword [ebp - 0x34], eax
jmp 0x40fd6c
push pe_nt_image_headers32
push 0x1000
push 0xa
push 0
call sub.KERNEL32.DLL_CreateDirectoryA
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov byte [eax], 0xff
mov eax, dword [ebp - 0x34]
mov byte [eax + 1], 0x25
mov eax, dword [ebp - 0x34]
add eax, 6
mov edx, dword [ebp - 0x34]
mov dword [edx + 2], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x34]
mov dword [edx + 6], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0xc]
mov edx, dword [ebp - 0x34]
mov eax, 0x410838
call fcn.0040ce98
push 4
lea edx, [ebp - 0xd4]
mov eax, 0x410810
call fcn.004070f0
push dword [ebp - 0xd4]
push 0x410804
push dword [ebp - 0x24]
lea eax, [ebp - 0xd0]
mov edx, 3
call fcn.00403db4
mov eax, dword [ebp - 0xd0]
call fcn.00403eec
push eax
call fcn.0040cc94
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40fe33
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_lstrcpyW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40fe25
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_ExitProcess
jmp 0x40fe33
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_FormatMessageA
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40feea
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x34]
mov eax, ebx
call fcn.0040d314
test al, al
jne 0x40fe6e
call fcn.0040d510
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
jne 0x40feea
mov eax, dword [ebp - 0x34]
call fcn.0040d534
test al, al
je 0x40feea
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x40feaf
mov eax, dword [ebp - 0x14]
call fcn.0040adc8
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_FormatMessageA
call fcn.0040d510
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
je 0x40feaf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x34]
call fcn.0040d58c
test byte [ebp + 8], 4
setne al
call fcn.0040d9a8
xor eax, eax
push ebp
push 0x40fed5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x34]
call fcn.0040d4e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40fedf
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
jmp 0x40ff8f
cmp dword [ebp - 0x14], 0
je 0x40fef9
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_FormatMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x40ff0f
push 0
mov eax, dword [ebp - 0x34]
push eax
call fcn.0040aff8
jmp 0x40ff1f
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_FreeLibrary
mov dword [ebp - 0x3c], 0x770002
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
jmp 0x41076e
mov dword [ebp - 0x3c], 0x770002
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
jmp 0x41076e
mov dword [ebp - 0x3c], 0x770002
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
jmp 0x41076e
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 5], 0x53
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 0xc], al
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x40ff9e
test byte [ebp + 8], 4
jne 0x40ffa2
xor eax, eax
jmp 0x40ffa4
mov al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x24], al
test al, al
je 0x410167
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0x80000000
jae 0x4100c0
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
lea eax, [ebp - 0xa0]
push eax
test byte [ebp + 8], 8
setne cl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
xor edx, edx
call fcn.0040b2c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x410013
mov dword [ebp - 0x3c], 0x770003
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
jmp 0x41076e
mov eax, dword [ebp - 0x80]
call fcn.00404670
mov esi, eax
test esi, esi
jl 0x4100a6
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x80]
lea ecx, [edx + eax*4]
cmp byte [ecx + 0x10], 0
jne 0x4100a2
cmp dword [ecx + 0x18], 0
je 0x4100a2
mov eax, dword [ecx + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x14]
jne 0x4100a2
mov eax, dword [ecx + 0x18]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x98]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov edi, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x24], 0
jne 0x410094
mov edx, 4
mov eax, edi
call fcn.0040b214
test al, al
je 0x4100a2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x94]
mov dword [edi], eax
inc ebx
dec esi
jne 0x410028
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x94]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
jmp 0x410167
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00409f2c
cmp byte [ebp - 0xa0], 0
jne 0x4100fa
mov dword [ebp - 0x3c], 0x770003
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
call fcn.004036c8
jmp 0x41076e
mov eax, dword [ebp - 0x80]
call fcn.00404670
mov esi, eax
test esi, esi
jl 0x410167
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 0x80]
lea edi, [edx + eax*4]
cmp byte [edi + 0x10], 0
jne 0x410163
cmp dword [edi + 0x18], 0
je 0x410163
mov eax, dword [edi + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x14]
jne 0x410163
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x410158
push 0
push 4
call fcn.0040aed8
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [edi + 0x18]
mov dword [edx], eax
inc ebx
dec esi
jne 0x41010b
xor eax, eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
push ebp
push 0x4106a8
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 5], 0
je 0x410388
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x41019e
push 0
push 0x22
call fcn.0040aed8
mov dword [ebp - 0x30], eax
jmp 0x4101aa
push 0x22
push pe_nt_image_headers32
call sub.KERNEL32.DLL_lstrcatW
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x60]
mov eax, ebx
call fcn.0040906c
cmp byte [ebp - 0x59], 0
je 0x41022a
mov eax, dword [ebp - 0x4c]
cmp eax, 1
jne 0x4101ea
cmp word [ebp - 0x5e], 0xeb
je 0x4101e2
mov byte [esi], 0xf
mov al, byte [ebp - 0x5e]
and al, 0xf
add al, 0x80
mov byte [esi + 1], al
add esi, 6
jmp 0x41021c
mov byte [esi], 0xe9
add esi, 5
jmp 0x41021c
cmp eax, 2
jne 0x41020a
mov edi, dword [ebp - 0x40]
sub edi, ebx
mov ecx, edi
sub ecx, 3
mov edx, esi
mov eax, ebx
inc eax
call fcn.004026a4
add edi, esi
inc edi
mov esi, edi
jmp 0x41021c
mov edi, dword [ebp - 0x40]
sub edi, ebx
mov edx, esi
mov eax, ebx
mov ecx, edi
call fcn.004026a4
add esi, edi
mov edx, dword [ebp - 0x58]
mov eax, esi
sub edx, eax
sub eax, 4
mov dword [eax], edx
jmp 0x41023c
mov edi, dword [ebp - 0x40]
sub edi, ebx
mov edx, esi
mov eax, ebx
mov ecx, edi
call fcn.004026a4
add esi, edi
mov ebx, dword [ebp - 0x40]
mov eax, ebx
sub eax, dword [ebp - 0x38]
cmp eax, 6
jb 0x4101b0
mov byte [esi], 0xe9
add esi, 5
sub ebx, esi
sub esi, 4
mov dword [esi], ebx
push 4
lea edx, [ebp - 0xdc]
mov eax, 0x410810
call fcn.004070f0
push dword [ebp - 0xdc]
push 0x410804
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd8]
mov edx, 3
call fcn.00403db4
mov eax, dword [ebp - 0xd8]
call fcn.00403eec
push eax
call fcn.0040cc94
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41044e
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x4102b9
mov eax, dword [ebp - 0x14]
call fcn.0040adc8
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_lstrcpyW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41044e
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x4102f3
push 0
push 0x5c
call fcn.0040aed8
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
jmp 0x410308
push pe_nt_image_headers32
push 0x1000
push 0x5c
push 0
call sub.KERNEL32.DLL_CreateDirectoryA
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [eax], 2
mov dword [eax + 4], 8
mov edx, dword [ebp - 0x38]
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dword [eax + 0x10], ecx
mov cx, word [edx + 4]
mov word [eax + 0x14], cx
mov byte [eax + 0x16], 0xff
mov byte [eax + 0x17], 0x25
mov edx, dword [ebp - 0x30]
add edx, 0x1e
mov dword [eax + 0x18], edx
mov edx, dword [eax + 0x18]
mov ecx, dword [ebp - 0x30]
mov dword [edx], ecx
mov edx, dword [ebp - 4]
cmp byte [edx + 0xc], 0
jne 0x410365
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
cmp edx, dword [eax + 0xc]
jne 0x410365
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
jmp 0x41036a
xor edx, edx
mov dword [eax + 8], edx
xor edx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x30]
add edx, 0x1e
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x28], edx
jmp 0x41044e
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_lstrcpyW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41044e
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
mov eax, dword [ebx + 4]
cmp eax, dword [ebx]
jne 0x41044e
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x4103da
push 0
mov eax, dword [ebx + 4]
add eax, eax
shl eax, 3
add eax, 0x1c
push eax
call fcn.0040aed8
mov dword [ebp - 0x28], eax
jmp 0x4103f7
push pe_nt_image_headers32
push 0x1000
mov eax, dword [ebx + 4]
add eax, eax
shl eax, 3
add eax, 0x1c
push eax
push 0
call sub.KERNEL32.DLL_CreateDirectoryA
mov dword [ebp - 0x28], eax
mov ecx, dword [ebx + 4]
shl ecx, 3
add ecx, 0x1c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.004026a4
mov eax, dword [ebx + 4]
add eax, eax
mov edx, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x41043e
push 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040aff8
jmp 0x41044e
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 4]
cmp byte [eax + 0x24], 0
jne 0x410602
test byte [ebp + 8], 1
jne 0x410564
push 0x1c0
push pe_nt_image_headers32
call sub.KERNEL32.DLL_lstrcatW
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
xor ebx, ebx
mov eax, ebx
shl eax, 3
sub eax, ebx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
lea eax, [edx + eax*2]
mov byte [eax], 0x68
xor edx, edx
mov dword [eax + 1], edx
mov byte [eax + 5], 0xf0
mov word [eax + 6], 0x2583
lea edx, [eax + 1]
mov dword [eax + 8], edx
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0xc3
inc ebx
cmp ebx, 0x20
jne 0x410479
lea edx, [ebp - 0xa0]
mov eax, 0x40f104
call fcn.00409f2c
mov eax, dword [ebp - 0x94]
push eax
push pe_nt_image_headers32
call sub.KERNEL32.DLL_lstrcatW
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, 0x40f104
mov ecx, dword [ebp - 0x94]
call fcn.004026a4
mov eax, dword [ebp - 0x94]
push eax
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, 0x41083c
mov ecx, 4
call fcn.004066e0
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
sub edx, 0xe
mov dword [eax], edx
mov eax, dword [ebp - 0x94]
push eax
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x2c]
mov eax, 0x410844
mov ecx, 4
call fcn.004066e0
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov ecx, dword [ebp - 4]
sub edx, dword [ecx + 0x2c]
sub edx, dword [ebp - 0x94]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc], 0
je 0x410602
push 0
push 0x22
call fcn.0040aed8
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edi, eax
mov esi, 0x418b0c
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, 0x410854
call fcn.00409fec
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
inc edx
add edx, 5
sub eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov dword [edx + 2], eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x1c]
mov dword [ebx + 7], eax
lea eax, [ebx + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x1e]
mov dword [ebx + 0x1a], eax
lea eax, [ebx + 0x1e]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x20]
mov dword [edx + 2], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
push eax
call sub.KERNEL32.DLL_LoadLibraryW
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
pop edx
call fcn.0040ec94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, dword [eax + edx*8 + 0x14]
mov dword [eax + edx*8 + 0x1c], ecx
mov ecx, dword [eax + edx*8 + 0x18]
mov dword [eax + edx*8 + 0x20], ecx
mov edx, dword [ebp - 4]
cmp byte [edx + 0xc], 0
je 0x410647
mov edx, dword [ebp - 4]
cmp byte [edx + 0x24], 0
jne 0x410647
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + edx*8 + 0x14], ecx
jmp 0x410653
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov dword [eax + edx*8 + 0x14], ecx
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x20]
mov ecx, dword [ecx + 2]
mov dword [eax + edx*8 + 0x18], ecx
mov edx, dword [eax]
mov ecx, dword [eax + edx*8 + 0x1c]
mov edx, dword [eax + edx*8 + 0x18]
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + edx*8 + 0x14]
mov edx, dword [eax + edx*8 + 0x10]
mov dword [edx], ecx
inc dword [eax]
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov eax, dword [ebp - 4]
call fcn.00410868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4106af
cmp dword [ebp - 0x18], 0
je 0x4106a7
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_ExitProcess
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4107b9
lea eax, [ebp - 0xdc]
mov edx, 0xf
call fcn.00403b94
lea eax, [ebp - 0xa0]
mov edx, dword [0x407c04]
call fcn.004041d4
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403b94
lea eax, [ebp + 0x18]
call fcn.00403b70
ret