Function at 0x41411a
Capabilities:
Create thread
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [edi + 0x12c]
cmp eax, 2
je 0x414145
cmp eax, 0x33
jne 0x41415b
test byte [edi + 0x130], 1
je 0x41415b
cmp dword [edi + 0x138], 0xffffffff
je 0x414384
push ebx
push esi
push 0x118
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x414382
push 0x2000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov esi, eax
mov dword [ebp - 0x78], esi
test esi, esi
je 0x41436e
call fcn.00406ca2
mov eax, dword [edi + 0x12c]
mov ecx, dword [edi + 0x130]
mov dl, byte [edi + 0x128]
mov dword [esi + 8], edi
add esi, 0xc
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov byte [ebx + 8], 0
and dword [esi], 0
push esi
push dword [edi + 0xc]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], ecx
mov byte [ebp - 0x65], dl
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4141df
cmp dword [esi], 0
jne 0x4141e6
push esi
call fcn.004012a0
pop ecx
mov al, byte [ebp - 0x65]
sub al, 0x61
cmp al, 0x19
ja 0x4141f3
add byte [ebp - 0x65], 0xe0
movsx eax, byte [ebp - 0x65]
sub eax, 0x41
cmp eax, 0x19
jbe 0x41426e
push 2
pop esi
mov dword [ebp - 0x70], 0x5c3a43
mov dword [ebp - 0x6c], esi
mov al, byte [ebp - 0x6c]
add al, 0x41
mov byte [ebp - 0x70], al
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x7c], eax
cmp eax, esi
je 0x41422a
cmp eax, 5
jne 0x414257
push pe_nt_image_headers32
lea eax, [ebp - 0x64]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x414257
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x414262
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x1a
jb 0x41420c
jmp 0x41426e
mov al, byte [ebp - 0x70]
mov byte [edi + 0x128], al
mov byte [ebp - 0x65], al
movsx ecx, byte [ebp - 0x65]
xor esi, esi
inc esi
sub ecx, 0x41
mov eax, esi
shl eax, cl
mov ecx, dword [ebp - 0x80]
mov dword [ebx + 0x10c], eax
cmp ecx, 7
jne 0x414295
test byte [ebp - 0x74], 4
je 0x4142af
push 2
pop esi
jmp 0x4142b1
cmp ecx, 2
je 0x4142a3
cmp ecx, 0x33
jne 0x41435c
test byte [ebp - 0x74], 1
je 0x41435c
jmp 0x4142b1
xor esi, esi
mov eax, dword [ebp - 0x78]
mov dword [eax], esi
mov dword [eax + 4], 0x78
mov dword [ebx + 0x110], esi
cmp ecx, 2
je 0x4142cd
cmp ecx, 0x33
jne 0x4142d3
test byte [ebp - 0x74], 1
jne 0x414312
mov eax, esi
imul eax, eax, 0x50
xor ecx, ecx
cmp dword [eax + 0x49c1dc], ecx
jne 0x414312
cmp dword [eax + 0x49c1f0], ecx
jne 0x4142f2
cmp dword [eax + 0x49c1fc], ecx
je 0x414312
lea eax, [ebp - 0x7c]
push eax
push ecx
push ebx
push 0x417d1f
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x414312
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push 0
call fcn.0046feb9
pop ecx
lea ecx, [esi*4 + 0x49cc40]
mov edx, eax
sub edx, dword [ecx]
mov dword [ebp - 0x7c], eax
cmp edx, 2
jb 0x41435c
mov esi, dword [ebp - 0x78]
mov dword [ecx], eax
mov eax, dword [esi]
imul eax, eax, 0x50
cmp dword [eax + 0x49c200], 0
je 0x414347
push esi
call fcn.00415211
pop ecx
mov eax, dword [esi]
imul eax, eax, 0x50
cmp dword [eax + 0x49c204], 0
je 0x41435c
push esi
call fcn.00415faa
pop ecx
push dword [ebp - 0x78]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x414382
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
push edi
call fcn.00411f08
pop ecx
mov ecx, dword [ebp + 0x9c]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.0046c1d2
add ebp, 0xa0
leave
ret