Function at 0x100058f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x774
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], bl
mov byte [esp + 0x384], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x385]
mov byte [esp + 0x584], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x585]
mov edx, dword [esp + 0x788]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebp, ebp
mov dword [esp + 0x30], ebx
cmp edx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
stosb byte es:[edi], al
je 0x10005d9b
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x5c]
push 0x20
rep stosd dword es:[edi], eax
lea eax, [esp + 0x60]
push eax
push edx
call fcn.10005750
add esp, 0xc
test eax, eax
je 0x10005d9b
push ebp
push ebp
push 3
push ebp
push 3
push 0xc0000000
push str..PhysicalDrive0
call dword [0x100150f8]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x10005d9b
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x7c]
push ebp
rep stosd dword es:[edi], eax
mov edi, dword [0x10015080]
push ebp
push ebp
push esi
call edi
mov ebx, dword [0x1001507c]
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [esp + 0x84]
push 0x200
push edx
push esi
call ebx
test eax, eax
je 0x10005d85
cmp byte [esp + 0x23a], 0x80
jne 0x10005d85
mov eax, dword [esp + 0x23e]
and eax, 0xff
cmp eax, 7
mov dword [esp + 0x1c], eax
je 0x10005a22
cmp eax, 0xb
je 0x10005a22
cmp eax, 0xc
jne 0x10005d85
mov eax, dword [esp + 0x242]
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
push ebp
shl eax, 9
push ecx
push eax
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
call edi
lea edx, [esp + 0x10]
push ebp
push edx
lea eax, [esp + 0x84]
push 0x200
push eax
push esi
call ebx
test eax, eax
je 0x10005d85
mov eax, dword [esp + 0x8a]
mov ebp, dword [esp + 0x87]
mov ebx, dword [esp + 0x89]
and eax, 0xffff
cdq
mov esi, eax
mov eax, dword [esp + 0x28]
and ebp, 0xffff
and ebx, 0xff
xor ecx, ecx
mov edi, edx
add esi, eax
mov eax, dword [esp + 0x1c]
adc edi, ecx
cmp eax, 0xb
mov dword [esp + 0x58], ebp
mov dword [esp + 0x3c], ebx
je 0x10005aab
cmp eax, 0xc
jne 0x10005ac5
mov edx, dword [esp + 0x8c]
and edx, 0xff
imul edx, dword [esp + 0xa0]
add esi, edx
adc edi, 0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
xor eax, eax
push ecx
push edx
push eax
push ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
call fcn.100149b0
mov ecx, eax
add ecx, esi
adc edx, edi
xor eax, eax
push eax
push ebp
push edx
push ecx
call fcn.100149b0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
push 0
push edx
push eax
push esi
mov dword [esp + 0x30], eax
call dword [0x10015080]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x84]
push 0x200
push ecx
push esi
call dword [0x1001507c]
test eax, eax
je 0x10005d81
lea edx, [esp + 0x10]
push 0
push edx
mov edx, dword [esp + 0x790]
lea eax, [esp + 0x38c]
push 0x200
lea ecx, [esp + 0x38]
push eax
push ecx
push edx
call fcn.100057e0
add esp, 0x18
test eax, eax
je 0x10005d81
mov ecx, 0x80
lea edi, [esp + 0x384]
lea esi, [esp + 0x7c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x10005d81
mov edx, dword [esp + 0x788]
lea ecx, [esp + 0x27c]
push ecx
push 0x105
push edx
call fcn.10005850
add esp, 0xc
test eax, eax
je 0x10005d81
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x58c]
push 0x200
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x28c]
push edx
push eax
call fcn.100057e0
add esp, 0x18
test eax, eax
je 0x10005d81
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
cmp ecx, eax
jne 0x10005d81
mov ecx, 0x80
lea edi, [esp + 0x584]
lea esi, [esp + 0x384]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x10005d81
mov eax, ebp
mov esi, dword [esp + 0x64]
imul eax, ebx
mov edi, dword [esp + 0x68]
push eax
mov dword [esp + 0x20], eax
call fcn.100149aa
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
add esp, 4
mov dword [esp + 0x28], 0
test eax, eax
jbe 0x10005d68
lea ebx, [esp + 0x6c]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub eax, esi
sbb ecx, edi
mov dword [esp + 0x40], eax
or eax, ecx
mov dword [esp + 0x44], ecx
je 0x10005d4b
mov eax, dword [esp + 0x3c]
xor esi, esi
push esi
xor edi, edi
push eax
push edi
push ebp
call fcn.100149b0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x54], edx
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 8]
push esi
push ecx
push edx
push eax
call fcn.100149b0
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
add eax, ecx
push edi
adc edx, esi
push ebp
push edx
push eax
call fcn.100149b0
mov esi, eax
mov ebp, edx
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edi
mov ecx, edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x28c]
push eax
push ecx
call fcn.100057e0
add esp, 0x18
test eax, eax
je 0x10005d70
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add edi, ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x14]
push 0
push edx
push eax
push edi
call dword [0x10015080]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push edi
call dword [0x1001508c]
test eax, eax
je 0x10005d70
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add esi, edi
adc ebp, edx
add eax, 0xffffffff
adc ecx, 0xffffffff
mov dword [esp + 0x40], eax
or eax, ecx
mov dword [esp + 0x44], ecx
jne 0x10005c91
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
mov ecx, dword [esp + 0x5c]
inc eax
add ebx, 0x10
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x10005c33
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10005d81
push eax
call fcn.100149a4
add esp, 4
mov esi, dword [esp + 0x14]
push esi
call dword [0x100150ec]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x774
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x774
ret