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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
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
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
jne 0x421be7
mov dword [ebp - 0x20], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x421bdf
push 0x4f
push 0x414712e
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x421c20
mov dword [ebp - 0x20], esp
push dword [ebp + 8]
push 0
push 0x400
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x421c1d
push 0x7d
push 0x414712e
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x421c34
mov eax, 0x4bd20c
jmp 0x42204d
push 0x80000301
push 0
push 0x20a
push 1
mov ebx, 0x1bc
call fcn.004ac1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x421c69
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
push 0x104
mov eax, dword [ebp - 8]
test eax, eax
je 0x421c7f
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x421ca9
push 0x19c
push 0x414712e
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x421cd8
push 0x1c3
push 0x414712e
push 6
call fcn.004aadaa
add esp, 0xc
fild dword [ebp - 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x4bd24e]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x4bd24e]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004014fb
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x421d19
mov eax, 0x4bd20c
push eax
push 2
mov ebx, 0x1a0
call fcn.004acad0
add esp, 0x1c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x421d43
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x4c0d4a
test eax, eax
je 0x421d63
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004aad9e
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 0x421d74
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push 0x20a
push 1
mov ebx, 0x1bc
call fcn.004ac1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x421dad
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
xor ecx, ecx
lea eax, [ebp - 0x18]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x1a
jg 0x422040
mov ebx, dword [ebp - 0x10]
call fcn.00402734
mov eax, 0
cmp eax, ecx
jl 0x421dee
push 0x33c
push 0x414712e
push 1
call fcn.004aadaa
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
inc byte [ebx]
mov dword [ebp - 0x20], esp
push 0x104
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x421e0a
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x421e15
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x421e3c
push 0x39e
push 0x414712e
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x422039
mov ebx, dword [ebp - 0x14]
call fcn.00402734
push ebx
push ecx
fild dword [ebp - 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x4bd24e]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x4bd56b]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004014fb
dec eax
jns 0x421e93
push 0x435
push 0x414712e
push 4
call fcn.004aadaa
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x421eb0
push 0x435
push 0x414712e
push 1
call fcn.004aadaa
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x38]
mov byte [ebx], 0x5c
fild dword [ebp - 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x4bd24e]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x4bd24e]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004014fb
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x421f01
mov eax, 0x4bd20c
push eax
push 2
mov ebx, 0x1a0
call fcn.004acad0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x421f2b
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x421f48
mov eax, 0x4bd20c
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x421f5c
mov eax, 0x4bd20c
push eax
push 3
mov ebx, 0x1ac
call fcn.004ada00
add esp, 0x28
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jne 0x422039
mov ebx, dword [ebp - 0x10]
call fcn.00402734
mov eax, 4
cmp eax, ecx
jl 0x421fa4
push 0x55f
push 0x414712e
push 1
call fcn.004aadaa
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov byte [ebx], 0x5c
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x421fc2
mov eax, 0x4bd20c
push eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x421fec
mov eax, 0x4bd20c
push eax
push 4
mov ebx, 0x1b4
call fcn.004abe30
add esp, 0x34
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x422016
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x422034
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004aad9e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x42204d
pop ebx
pop ecx
jmp 0x421db8
add esp, 8
mov eax, 0x4bd20c
jmp 0x42204d
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42205e
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42206e
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42207e
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42208e
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8