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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10144d22
mov eax, dword fs:[0]
push eax
sub esp, 0xcb0
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0xca8], eax
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0xcc0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], eax
call sub.diskmgr.dll_CreateDdmManager
mov dword [esp + 0x78], eax
call sub.FuncLogic.dll_CreateEnumDisk
mov ebx, eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov esi, dword [esi + 0x34]
mov esi, dword [esi + 0x18]
test esi, esi
je 0x100552b4
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10055305
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100552a0
xor eax, eax
mov esi, dword [eax + 0x18]
test esi, esi
je 0x100552d4
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10055310
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100552c0
xor eax, eax
mov esi, dword [eax + 0x18]
test esi, esi
je 0x100552f4
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1005531b
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100552e0
xor eax, eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10055326
xor eax, eax
jmp 0x10055c64
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x100552b6
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x100552d6
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x100552f6
xor eax, eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov edi, dword [esp + 0x18]
add edi, 0x2c
mov esi, 0x10155d50
call fcn.1007f080
test eax, eax
je 0x10055361
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10055363
xor eax, eax
push eax
lea edi, [esp + 0x98]
call fcn.1002fb90
add esp, 4
lea eax, [esp + 0xa4]
mov ecx, edi
call fcn.1002f890
test eax, eax
jne 0x100553be
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x28]
test esi, esi
je 0x100553a4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x100553b3
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10055390
xor eax, eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10055344
jmp 0x10055c64
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x100553a6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100552fe
call fcn.1002ffc0
test eax, eax
mov dword [esp + 0x30], eax
je 0x100552fe
mov esi, dword [eax + 0x20]
add esi, 8
mov edi, str.Parts
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1005542c
mov esi, dword [eax + 0x28]
test esi, esi
je 0x10055410
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x100556b8
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100553f8
xor eax, eax
mov esi, dword [eax + 0x20]
add esi, 8
mov edi, str.Parts
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x30], eax
jne 0x100553f1
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
mov ecx, ebx
call edx
mov esi, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
mov ecx, ebx
mov dword [esp + 0x7c], esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
mov ecx, ebx
call edx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0xcc8], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
cmp esi, eax
mov byte [esp + 0xcc8], 5
mov dword [esp + 0x18], eax
jbe 0x10055548
mov eax, dword [ebx]
mov edi, dword [esp + 0x18]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x2b4]
push ecx
push edi
mov ecx, ebx
call edx
lea eax, [esp + 0x2b4]
lea esi, [esp + 0x58]
call fcn.10029710
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push edi
mov ecx, ebx
call edx
xor edi, edi
test eax, eax
mov dword [esp + 0x80], eax
jbe 0x10055533
mov eax, dword [ebx]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0x28]
lea ecx, [esp + 0xb4]
push ecx
push edi
push edx
mov ecx, ebx
call eax
lea eax, [esp + 0xb4]
lea esi, [esp + 0x20]
call fcn.100297b0
add edi, 1
cmp edi, dword [esp + 0x80]
jb 0x10055500
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
jb 0x100554c3
xor edi, edi
cmp dword [esp + 0x1c], edi
jbe 0x1005557e
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x2b4]
push eax
push edi
mov ecx, ebx
call edx
lea eax, [esp + 0x2b4]
lea esi, [esp + 0x84]
call fcn.10029710
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x10055550
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x100555bb
jmp 0x10055590
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x2b4]
push ecx
push edi
mov ecx, ebx
call edx
lea eax, [esp + 0x2b4]
lea esi, [esp + 0x34]
call fcn.10029710
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x10055590
xor edi, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edi
jmp 0x100555d0
mov ecx, dword [esp + 0x24]
cmp ecx, edi
je 0x10055924
mov eax, dword [esp + 0x28]
sub eax, ecx
sar eax, 9
cmp dword [esp + 0x14], eax
jae 0x10055924
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x18]
cmp esi, edi
je 0x10055618
lea ebx, [ebx]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x100556c6
mov esi, dword [esi + 0x28]
cmp esi, edi
jne 0x10055600
xor eax, eax
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x10055902
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x4c]
add ebx, 0x2c
cmp eax, ebx
je 0x10055655
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.IsDynamic
mov ecx, 0xa
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100556d4
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x10055634
xor eax, eax
movsx eax, byte [eax]
sub eax, 0x30
jne 0x100558d1
mov eax, dword [ebx + 0x20]
cmp eax, ebx
je 0x10055687
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.IsGPT
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100556df
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x1005566a
mov eax, dword [ebx + 0x20]
cmp eax, ebx
je 0x1005580c
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.Signature
mov ecx, 0xa
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100557f2
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x10055692
jmp 0x1005580c
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x10055412
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1005561a
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10055657
mov eax, dword [eax + 0x18]
add eax, 8
je 0x10055687
mov eax, dword [ebx + 0x20]
cmp eax, ebx
je 0x1005570b
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.IsGPT
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10055746
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x100556ee
xor eax, eax
movsx eax, byte [eax]
sub eax, 0x30
je 0x10055687
mov eax, dword [ebx + 0x20]
cmp eax, ebx
je 0x100558d1
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.Guid
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1005574e
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x10055724
jmp 0x100558d1
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x1005570d
mov eax, dword [eax + 0x18]
add eax, 8
je 0x100558d1
xor ecx, ecx
push eax
lea edi, [esp + 0x98]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], ecx
call fcn.1002fb90
mov esi, dword [esp + 0x28]
add esp, 4
test esi, esi
je 0x100557a1
mov edi, dword [esp + 0x28]
mov eax, edi
sub eax, esi
sar eax, 9
cmp dword [esp + 0x14], eax
jb 0x100557af
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
shl ebx, 9
lea eax, [esi + ebx + 0x16a]
lea ecx, [esp + 0x94]
call fcn.1002f890
test eax, eax
je 0x100558d1
test esi, esi
je 0x100557e0
sub edi, esi
sar edi, 9
cmp dword [esp + 0x14], edi
jb 0x100557ea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
lea eax, [esi + ebx]
jmp 0x100558c8
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x44]
push ecx
add edx, 8
push 0x10153f8c
push edx
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
mov eax, dword [ebx + 0x20]
cmp eax, ebx
je 0x10055834
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.StartSector
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1005590e
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x10055813
xor eax, eax
push eax
call dword [sym.imp.MSVCR80.dll__atoi64]
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
mov ebx, edx
je 0x1005585d
mov edx, dword [esp + 0x28]
mov ecx, edx
sub ecx, eax
sar ecx, 9
cmp dword [esp + 0x14], ecx
jb 0x1005586b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
shl esi, 9
mov ecx, dword [eax + esi + 0xde]
cmp ecx, dword [esp + 0x44]
jne 0x100558d1
test eax, eax
je 0x10055890
mov ecx, edx
sub ecx, eax
sar ecx, 9
cmp dword [esp + 0x14], ecx
jb 0x1005589e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + esi]
cmp ecx, edi
jne 0x100558d1
mov ecx, dword [eax + esi + 4]
cmp ecx, ebx
jne 0x100558d1
test eax, eax
je 0x100558bc
sub edx, eax
sar edx, 9
cmp dword [esp + 0x14], edx
jb 0x100558c6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
add eax, esi
lea esi, [esp + 0x48]
call fcn.100297b0
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x28]
test esi, esi
je 0x100558f4
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x10055919
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100558e0
xor eax, eax
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10055626
add dword [esp + 0x14], 1
xor edi, edi
jmp 0x100555d0
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10055836
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x100558f6
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
lea esp, [esp]
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x10055b9a
mov ecx, dword [esp + 0x3c]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jae 0x10055b9a
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x18]
cmp esi, edi
je 0x1005597c
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x100559f1
mov esi, dword [esi + 0x28]
cmp esi, edi
jne 0x10055968
xor eax, eax
cmp eax, edi
mov edx, eax
mov dword [esp + 0x18], edx
je 0x10055b7b
mov eax, dword [edx + 0x4c]
add edx, 0x2c
cmp eax, edx
je 0x100559b3
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.IsDynamic
mov ecx, 0xa
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x100559fc
mov eax, dword [eax + 0x20]
cmp eax, edx
jne 0x10055996
xor eax, eax
movsx ecx, byte [eax]
sub ecx, 0x30
cmp ecx, 1
jne 0x10055b4c
mov eax, dword [edx + 0x20]
cmp eax, edx
je 0x10055b4c
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.Guid
mov ecx, 5
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x10055a04
mov eax, dword [eax + 0x20]
cmp eax, edx
jne 0x100559cf
jmp 0x10055b4c
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1005597e
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x100559b5
mov eax, dword [eax + 0x18]
add eax, 8
je 0x10055b4c
mov eax, dword [edx + 0x20]
cmp eax, edx
mov ebx, 0x20
je 0x10055a48
lea esp, [esp]
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.Guid
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10055afa
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
add ecx, 0x2c
cmp eax, ecx
jne 0x10055a20
xor esi, esi
cmp dword [esp + 0x38], 0
je 0x10055a70
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x38]
mov eax, 0x66666667
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x10055a76
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
lea eax, [ecx + eax + 0x6d6]
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10055a9d
sub ebx, 4
add esi, 4
add eax, 4
cmp ebx, 4
jae 0x10055a85
test ebx, ebx
je 0x10055b05
movzx ecx, byte [eax]
movzx edx, byte [esi]
sub ecx, edx
jne 0x10055aec
sub ebx, 1
add esi, 1
add eax, 1
test ebx, ebx
je 0x10055b05
movzx ecx, byte [eax]
movzx edx, byte [esi]
sub ecx, edx
jne 0x10055aec
sub ebx, 1
add esi, 1
add eax, 1
test ebx, ebx
je 0x10055b05
movzx ecx, byte [eax]
movzx edx, byte [esi]
sub ecx, edx
jne 0x10055aec
sub ebx, 1
add esi, 1
add eax, 1
test ebx, ebx
je 0x10055b05
movzx ecx, byte [eax]
movzx eax, byte [esi]
sub ecx, eax
je 0x10055b05
test ecx, ecx
mov eax, 1
jg 0x10055b07
or eax, 0xffffffff
jmp 0x10055b07
mov esi, dword [eax + 0x18]
add esi, 8
jmp 0x10055a4a
xor eax, eax
test eax, eax
jne 0x10055b4c
mov esi, dword [esp + 0x38]
test esi, esi
je 0x10055b32
mov eax, dword [esp + 0x3c]
sub eax, esi
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x10055b3c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
lea eax, [esi + ecx]
lea esi, [esp + 0x68]
call fcn.10029710
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 0x28]
test esi, esi
je 0x10055b6b
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x10055b8f
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10055b57
xor eax, eax
test eax, eax
mov edx, eax
mov dword [esp + 0x18], edx
jne 0x1005598c
add dword [esp + 0x14], 1
add dword [esp + 0x1c], 0xa00
xor edi, edi
jmp 0x10055930
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x10055b6d
mov esi, dword [esp + 0x78]
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x64]
push edx
mov ecx, esi
call eax
mov eax, dword [esp + 0x6c]
cmp eax, edi
je 0x10055bce
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x4c]
cmp eax, edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
je 0x10055beb
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
je 0x10055c08
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
je 0x10055c25
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
je 0x10055c42
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x88]
cmp eax, edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
je 0x10055c62
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xcc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xca8]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 0x10