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

Disassembly:
sub esp, 0x970
xor eax, eax
push ebx
mov dword [esp + 0x20], eax
push ebp
push esi
mov dword [esp + 0x2c], eax
push edi
xor ebx, ebx
mov dword [esp + 0x34], eax
mov ecx, 0x24b
lea edi, [esp + 0x54]
mov dword [esp + 0x50], ebx
push str.Creating_partition_in_the_drive...
push 0x279f
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ebx
call fcn.00506990
push eax
push ebx
push ebx
call fcn.00502860
mov esi, dword [esp + 0x998]
add esp, 0x14
mov ecx, dword [esi + 0x30]
cmp ecx, 2
mov dword [esp + 0x18], ecx
jne 0x46fab7
mov dword [esp + 0x10], 1
jmp 0x46fe9f
mov ebp, dword [esi + 0xc]
mov ebx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov eax, ebp
shl eax, 0xa
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [esp + 0x48], ebp
test eax, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
jbe 0x46fd44
mov eax, ebp
cdq
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xa54]
mov eax, edi
shl eax, 4
add eax, edi
lea esi, [edi + edi*8]
shl esi, 4
lea ecx, [edi + eax*8]
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [edx + ecx*8 + 0x80]
lea ebp, [edx + ecx*8]
mov ecx, dword [esp + 0x20]
push ecx
lea ebx, [esp + esi + 0x90]
mov edx, dword [ebp + 0x84]
push edx
push eax
call fcn.00526dd0
mov ecx, dword [esp + 0x20]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x8c]
push ecx
mov ecx, dword [ebp + 0x88]
push edx
push eax
push ecx
call fcn.00526dd0
mov ebp, dword [esp + 0x18]
mov dword [esp + esi + 0x90], eax
lea eax, [edi + 1]
mov dword [esp + esi + 0x94], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + esi + 0x98], eax
mov dword [esp + esi + 0x80], ebp
mov dword [esp + 0x3c], eax
mov byte [esp + esi + 0x9c], 1
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
push edx
mov edx, dword [esp + 0x98c]
push eax
push ecx
push edx
call fcn.0046fee0
add esp, 0x10
cmp ebp, 1
jne 0x46fcd8
cmp edi, ebp
jne 0x46fc01
mov ecx, dword [0x648d4c]
mov eax, dword [0x648d48]
mov edx, dword [0x648d50]
mov dword [esp + 0x134], ecx
mov dword [esp + 0x130], eax
mov eax, dword [0x648d54]
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], edx
push ecx
mov dword [esp + 0x140], eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x24
lea edx, [esp + 0x15c]
push 0x7045ac
push edx
call fcn.00527768
add esp, 0xc
jmp 0x46fd1a
cmp edi, 2
jne 0x46fc62
mov ecx, dword [0x648d3c]
mov eax, dword [0x648d38]
mov edx, dword [0x648d40]
mov dword [esp + 0x1c4], ecx
mov dword [esp + 0x1c0], eax
mov eax, dword [0x648d44]
lea ecx, [esp + 0x1d0]
mov dword [esp + 0x1c8], edx
push ecx
mov dword [esp + 0x1d0], eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x24
lea edx, [esp + 0x1ec]
push 0x7045ac
push edx
call fcn.00527768
add esp, 0xc
jmp 0x46fd1a
test edi, edi
jne 0x46fd1a
mov bl, byte [esp + 0x994]
mov eax, 0x648d58
and bl, 2
jne 0x46fc80
mov eax, 0x648d38
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xa4], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0xb0]
mov dword [esp + 0xa8], ecx
push eax
mov dword [esp + 0xb0], edx
call dword [sym.imp.ole32.dll_CoCreateGuid]
test bl, bl
mov eax, str.EFI_System_Partition
jne 0x46fcc3
mov eax, 0x7045ac
push 0x24
lea ecx, [esp + 0xcc]
push eax
push ecx
call fcn.00527768
add esp, 0xc
jmp 0x46fd1a
test ebp, ebp
jne 0x46fd1a
test edi, edi
jne 0x46fd1a
mov eax, dword [esp + 0x98c]
mov byte [esp + 0xa1], 1
sub eax, 2
je 0x46fd12
dec eax
je 0x46fd08
dec eax
jne 0x46fdd5
mov byte [esp + 0xa0], 7
jmp 0x46fd1a
mov byte [esp + 0xa0], 0xc
jmp 0x46fd1a
mov byte [esp + 0xa0], 0xe
mov edx, dword [esp + 0x984]
mov edi, dword [esp + 0x3c]
cmp edi, dword [edx + 0x10]
jae 0x46fd31
mov esi, edx
jmp 0x46faed
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x984]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
sub ecx, 0
je 0x46fde2
dec ecx
jne 0x46fe07
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, ebp
mov ecx, dword [esi + 0x10]
shl eax, 4
add eax, ebp
mov dword [esp + 0x54], ecx
shl eax, 1
mov ecx, dword [esp + 0x44]
sub ebx, 0x43
cdq
mov dword [esp + 0x68], eax
mov eax, ebp
mov dword [esp + 0x6c], edx
mov edi, 0x10
cdq
sbb ecx, 0
push edx
push eax
push ecx
push ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x60], 1
call fcn.00526dd0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x78], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
jmp 0x46fe07
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x970
ret
mov dword [esp + 0x24], 0
call fcn.004dfcf0
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 4
mov dword [esp + 0x58], eax
mov ebx, dword [esp + 0x988]
lea eax, [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push eax
push 0
push 0
lea ecx, [esp + 0x34]
push 0x18
push ecx
push 0x7c058
push ebx
mov dword [esp + 0x34], 0x18
call edi
test eax, eax
je 0x46feb3
push ebx
call fcn.0046f8d0
mov eax, dword [esp + 0x1c]
mov ebp, 1
add esp, 4
cmp eax, ebp
jne 0x46fe62
mov esi, dword [esi + 0x10]
mov ecx, 0x240
lea edx, [esi + esi*8]
shl edx, 4
sub ecx, edx
jmp 0x46fe64
xor ecx, ecx
mov eax, 0x930
push 0
sub eax, ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
lea edx, [esp + 0x60]
push eax
push edx
push 0x7c054
push ebx
mov dword [esp + 0x34], eax
call edi
test eax, eax
je 0x46feb3
push ebx
call fcn.0046f8d0
add esp, 4
test eax, eax
je 0x46feb3
mov dword [esp + 0x10], ebp
xor ebx, ebx
push str.Creating_partition_completed_successfully.
push 0x27a0
call fcn.00506990
push eax
push ebx
push ebx
jmp 0x46fec7
push str.Creating_partition_failed.
push 0x27a1
call fcn.00506990
push eax
push 1
push 0
call fcn.00502860
mov eax, dword [esp + 0x24]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x970
ret