Function at 0x476700
Capabilities:
Enumerate disk volumes
Write file on windows

Disassembly:
sub esp, 0x530
mov eax, dword [0x589758]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x548]
push esi
xor eax, eax
push edi
xor ebx, ebx
push 0x103
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x3c], al
lea eax, [esp + 0x3d]
push ebx
push eax
mov edi, ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004f67e0
mov ecx, dword [esp + 0x550]
push ecx
lea edx, [esp + 0x48]
push str..PhysicalDrive_d
push edx
call fcn.004f726c
add esp, 0x18
push ebx
push 0x8000000
push 3
push ebx
push 3
push 0xc0000000
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4768f2
mov ecx, dword [esp + 0x548]
mov edx, dword [esp + 0x54c]
mov dword [esp + 0x14], ecx
push esi
mov ecx, edi
mov dword [esp + 0x1c], edx
call fcn.004764a0
mov ecx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x554]
push ebx
lea edx, [esp + 0x20]
push edx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ecx, edi
mov ebp, eax
call fcn.004764d0
cmp ebp, ebx
je 0x476800
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 1]
jmp 0x476ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 5
jne 0x476ac3
push 0x400
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4768f2
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x140]
push eax
mov ecx, edi
call fcn.00476640
cmp dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
jne 0x476969
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x54c]
ja 0x476969
mov edx, dword [esp + 0x20]
jb 0x476884
cmp edx, dword [esp + 0x548]
jae 0x476969
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add ecx, edx
adc eax, esi
mov esi, dword [esp + 0x54c]
cmp eax, esi
jb 0x476969
ja 0x4768ae
cmp ecx, dword [esp + 0x548]
jbe 0x476969
mov ecx, dword [esp + 0x548]
push 0
push 0
push 3
push 0
sub ecx, edx
sbb esi, dword [esp + 0x34]
push 3
push 0xc0000000
lea edx, [esp + 0x154]
push edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4768f9
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor eax, eax
jmp 0x476ac5
push esi
mov ecx, edi
call fcn.00476500
push 0
call ebx
push esi
mov ecx, edi
call fcn.004764a0
push 0
call ebx
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x554]
mov edx, dword [esp + 0x34]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ecx, edi
mov ebp, eax
call fcn.004764d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x476969
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, 1
jmp 0x476ac5
mov edx, dword [esp + 0x10]
push 0x400
lea ecx, [esp + 0x140]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
je 0x476ab8
lea esp, [esp]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x140]
push ecx
mov ecx, edi
call fcn.00476640
cmp dword [esp + 0x30], 0
jne 0x476a94
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x54c]
ja 0x476a94
mov edx, dword [esp + 0x20]
jb 0x4769d3
cmp edx, dword [esp + 0x548]
jae 0x476a94
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add ecx, edx
adc eax, esi
cmp eax, dword [esp + 0x54c]
jb 0x476a94
ja 0x4769fb
cmp ecx, dword [esp + 0x548]
jbe 0x476a94
mov eax, dword [esp + 0x548]
mov ecx, dword [esp + 0x54c]
push 0
push 0
push 3
push 0
sub eax, edx
push 3
push 0xc0000000
lea edx, [esp + 0x154]
sbb ecx, esi
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x476ab6
push esi
mov ecx, edi
call fcn.00476500
push 0
call ebx
push esi
mov ecx, edi
call fcn.004764a0
push 0
call ebx
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x554]
mov ecx, dword [esp + 0x34]
push 0
lea edx, [esp + 0x20]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ecx, edi
mov ebp, eax
call fcn.004764d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x476ab8
mov eax, dword [esp + 0x10]
push 0x400
lea edx, [esp + 0x140]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
test eax, eax
jne 0x476990
jmp 0x476ab8
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, ebp
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6592
add esp, 0x530
ret 0x14