Function at 0x591b10
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d4aed
mov eax, dword fs:[0]
push eax
sub esp, 0x728
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x724], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x73c]
mov dword fs:[0], eax
mov ebp, ecx
mov edi, dword [esp + 0x74c]
cmp edi, 0xffffffff
mov esi, dword [esp + 0x754]
jne 0x591c21
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.0040b040
lea eax, [esp + 0x4c]
push 0x600850
push eax
mov dword [esp + 0x74c], 0
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x50]
call fcn.004094f0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
mov byte [esp + 0x744], 1
jb 0x591bb3
mov eax, dword [eax + 4]
jmp 0x591bb6
add eax, 4
push eax
push str.CHardDiskInfo::GetHealthInfo
push 0x41b
push str..commonGetHardInfo.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x2c], ebp
jb 0x591bea
mov edx, dword [esp + 0x18]
push edx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0x744], 0xffffffff
call fcn.00409e00
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
jmp 0x5920d7
push 0x210
lea ecx, [esp + 0x12c]
push 0
push ecx
call fcn.005b5540
mov edx, dword [esp + 0x75c]
add esp, 0xc
push edx
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x10c]
push ecx
push edi
mov ecx, ebp
call fcn.00590420
test eax, eax
je 0x5920d7
lea edx, [esp + 0xe8]
push 1
push edx
call fcn.00501110
push 0x5f4230
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x40]
mov ebx, 2
push ecx
mov dword [esp + 0x758], ebx
call fcn.00404a60
push str.buffer.dat
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x764], 3
call fcn.00404a60
add esp, 0x20
push 0xffffffffffffffff
xor edi, edi
push edi
push eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x750], 4
call fcn.00407e40
mov ebp, 0x10
cmp dword [esp + 0x2c], ebp
jb 0x591cdf
mov eax, dword [esp + 0x18]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
mov byte [esp + 0x744], bl
jb 0x591d0a
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00595eb8
add esp, 4
push edi
push 0x62b600
lea ecx, [esp + 0xd4]
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], edi
mov byte [esp + 0xd8], 0
call fcn.00409790
push 0x1ff
lea edx, [esp + 0x33d]
push edi
push edx
mov byte [esp + 0x750], 5
mov byte [esp + 0x344], 0
call fcn.005b5540
add esp, 0xc
mov bl, 6
mov edi, edi
mov al, byte [esp + edi + 0x138]
movzx eax, al
push eax
push edi
lea ecx, [esp + 0x340]
push str._d:_d_r_n
push ecx
call fcn.005b1b4c
lea edx, [esp + 0x348]
push edx
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00404a60
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x750], bl
call fcn.00407e40
cmp dword [esp + 0x48], ebp
mov byte [esp + 0x744], 5
jb 0x591dce
mov edx, dword [esp + 0x34]
push edx
call fcn.00595eb8
add esp, 4
add edi, 1
cmp edi, 0x200
jl 0x591d60
cmp dword [esp + 0x100], ebp
mov eax, dword [esp + 0xec]
jae 0x591df0
lea eax, [esp + 0xec]
push 0x6007fc
push eax
call fcn.005b1ae9
mov edi, eax
add esp, 8
test edi, edi
je 0x591e50
mov ebx, dword [esp + 0xe4]
cmp ebx, ebp
mov eax, dword [esp + 0xd0]
jae 0x591e1d
lea eax, [esp + 0xd0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x591e20
mov ecx, dword [esp + 0xd0]
sub eax, edx
cmp ebx, ebp
jae 0x591e3d
lea ecx, [esp + 0xd0]
push edi
push 1
push eax
push ecx
call fcn.005b1d61
push edi
call fcn.005b1fa4
add esp, 0x14
cmp dword [esp + 0xe4], ebp
jb 0x591e69
mov eax, dword [esp + 0xd0]
push eax
call fcn.00595eb8
add esp, 4
cmp dword [esp + 0x100], ebp
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], 0
mov byte [esp + 0xd0], 0
jb 0x591ea0
mov ecx, dword [esp + 0xec]
push ecx
call fcn.00595eb8
add esp, 4
mov eax, 1
jmp 0x591eb0
mov bl, byte [esp + eax + 0x139]
cmp bl, 1
jne 0x591ee2
movzx edx, byte [esp + eax + 0x13d]
movzx ecx, byte [esp + eax + 0x13f]
mov dword [esi + 0xa4], edx
movzx edx, byte [esp + eax + 0x13e]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x64], ecx
cmp bl, 3
jne 0x591f0d
movzx ecx, byte [esp + eax + 0x13d]
movzx edx, byte [esp + eax + 0x13e]
mov dword [esi + 0xa0], ecx
movzx ecx, byte [esp + eax + 0x13f]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x68], ecx
cmp bl, 5
jne 0x591f38
movzx edx, byte [esp + eax + 0x13d]
movzx ecx, byte [esp + eax + 0x13f]
mov dword [esi + 0xa8], edx
movzx edx, byte [esp + eax + 0x13e]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x6c], ecx
cmp bl, 9
jne 0x591f63
movzx ecx, byte [esp + eax + 0x13d]
movzx edx, byte [esp + eax + 0x13e]
mov dword [esi + 0xac], ecx
movzx ecx, byte [esp + eax + 0x13f]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x70], ecx
cmp bl, 0xa
jne 0x591f8e
movzx edx, byte [esp + eax + 0x13d]
movzx ecx, byte [esp + eax + 0x13f]
mov dword [esi + 0xb0], edx
movzx edx, byte [esp + eax + 0x13e]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x74], ecx
cmp bl, 0xc
jne 0x591fb9
movzx ecx, byte [esp + eax + 0x13d]
movzx edx, byte [esp + eax + 0x13e]
mov dword [esi + 0xb4], ecx
movzx ecx, byte [esp + eax + 0x13f]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x78], ecx
cmp bl, 0xc4
jne 0x591fe4
movzx edx, byte [esp + eax + 0x13d]
movzx ecx, byte [esp + eax + 0x13f]
mov dword [esi + 0xb8], edx
movzx edx, byte [esp + eax + 0x13e]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x7c], ecx
cmp bl, 0xc5
jne 0x592012
movzx ecx, byte [esp + eax + 0x13d]
movzx edx, byte [esp + eax + 0x13e]
mov dword [esi + 0xbc], ecx
movzx ecx, byte [esp + eax + 0x13f]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x80], ecx
cmp bl, 0xc6
jne 0x592040
movzx edx, byte [esp + eax + 0x13d]
movzx ecx, byte [esp + eax + 0x13f]
mov dword [esi + 0xc0], edx
movzx edx, byte [esp + eax + 0x13e]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x84], ecx
cmp bl, 0xc7
jne 0x59206e
movzx ecx, byte [esp + eax + 0x13d]
movzx edx, byte [esp + eax + 0x13e]
mov dword [esi + 0xc4], ecx
movzx ecx, byte [esp + eax + 0x13f]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x88], ecx
cmp bl, 0xc2
jne 0x592099
movzx edx, byte [esp + eax + 0x13d]
movzx ecx, byte [esp + eax + 0x13f]
mov dword [esi + 0x9c], edx
movzx edx, byte [esp + eax + 0x13e]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x60], ecx
cmp bl, 0xc8
je 0x5920ae
add eax, 0xc
cmp eax, 0x200
jl 0x591eb0
jmp 0x5920d7
movzx ecx, byte [esp + eax + 0x13d]
mov dword [esi + 0xc8], ecx
movzx ecx, byte [esp + eax + 0x13f]
movzx eax, byte [esp + eax + 0x13e]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x8c], ecx
xor eax, eax
mov ecx, dword [esp + 0x73c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x724]
xor ecx, esp
call fcn.005b1988
add esp, 0x734
ret 0xc