Function at 0x4036de
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.0040e150
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403746
push ebx
call fcn.0040c507
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x403762
cmp dword [ebp + 8], 0
je 0x403762
xor eax, eax
jmp 0x403767
mov eax, 1
test eax, eax
je 0x4037a0
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x403798
push 0xc5
push 0x4011ae2
push 6
call fcn.0040c50d
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x4037d9
mov dword [ebp - 0x1c], esp
push dword [ebp + 8]
push 0
push 0x400
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4037d6
push 0xf3
push 0x4011ae2
push 6
call fcn.0040c50d
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4037ed
mov eax, 0x41e240
jmp 0x403abe
mov dword [ebp - 0x1c], esp
push 0x104
push dword [ebp - 4]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x403821
push 0x186
push 0x4011ae2
push 6
call fcn.0040c50d
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
xor eax, eax
call dword [0x42881f1]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40384d
push 0x1b0
push 0x4011ae2
push 6
call fcn.0040c50d
add esp, 0xc
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.0040e150
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403882
push ebx
call fcn.0040c507
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov eax, 0x4287885
test eax, eax
je 0x4038a2
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040c501
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4038b3
push ebx
call fcn.0040c507
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
lea eax, [ebp - 0x14]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x1a
jg 0x403ab1
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
inc byte [ebx]
push 0x80000005
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4038f9
mov eax, 0x4287743
push eax
push 1
mov ebx, 0x168
call fcn.0040d590
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0x104
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x403943
push 0x308
push 0x4011ae2
push 6
call fcn.0040c50d
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x403956
push ebx
call fcn.0040c507
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4039af
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x403979
mov eax, 0x41e240
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40398d
mov eax, 0x41e240
push eax
push 2
mov ebx, 0xb0
call fcn.0040e190
add esp, 0x1c
test eax, eax
je 0x4039af
mov eax, 1
jmp 0x4039b4
mov eax, 0
test eax, eax
je 0x403aaa
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4039cf
mov eax, 0x41e240
push eax
push 1
mov ebx, 0x130
call fcn.0040cde0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000005
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4039f8
mov eax, 0x4287743
push eax
push 1
mov ebx, 0x168
call fcn.0040d590
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x403a21
mov eax, 0x41e240
push eax
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403a4b
mov eax, 0x41e240
push eax
push 4
mov ebx, 0x17c
call fcn.0040e1d0
add esp, 0x34
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403a71
push ebx
call fcn.0040c507
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403a85
push ebx
call fcn.0040c507
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x403aa5
push eax
mov ebx, eax
call fcn.0040111c
inc eax
push eax
call fcn.0040c501
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403abe
pop ebx
pop ecx
jmp 0x4038be
add esp, 8
mov eax, 0x41e240
jmp 0x403abe
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403acf
push ebx
call fcn.0040c507
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403adf
push ebx
call fcn.0040c507
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403aef
push ebx
call fcn.0040c507
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8