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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10048fc2
mov eax, dword fs:[0]
push eax
sub esp, 0xc98
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0xc90], eax
push ebx
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0xca8]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x10015989
push 8
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x100158eb
mov dword [eax], 0
mov dword [eax + 4], 0
mov edi, eax
jmp 0x100158ed
xor edi, edi
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x20]
push eax
mov ecx, edi
call fcn.1000a8d0
mov eax, dword [edi]
test eax, eax
jne 0x100162b4
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
test eax, eax
jbe 0x10015982
mov edx, dword [esi]
mov eax, dword [edx + 0xbc]
mov ecx, esi
call eax
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edi, dword [esi]
mov ebx, eax
mov eax, dword [edi + 0xbc]
add esp, 4
mov ecx, esi
call eax
mov edx, dword [edi + 0xc0]
push eax
push ebx
mov ecx, esi
call edx
push 8
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
add esp, 4
cmp eax, edi
je 0x1001596b
mov dword [eax], edi
mov dword [eax + 4], edi
mov edi, eax
mov eax, dword [ebx]
mov edx, dword [esi + 0x20]
push eax
mov ecx, edi
call fcn.1000a8d0
mov eax, dword [edi]
test eax, eax
jne 0x100162b4
xor eax, eax
jmp 0x100162b4
call sub.diskmgr.dll_CreateDdmManager
mov dword [esp + 0x74], eax
call sub.FuncLogic.dll_CreateEnumDisk
mov ebx, eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
mov eax, dword [esi + 0x24]
mov edi, dword [eax + 0x18]
test edi, edi
je 0x100159c8
lea esp, [esp]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x10015d26
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x100159b0
xor eax, eax
mov edi, dword [eax + 0x18]
test edi, edi
je 0x100159e9
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
test eax, eax
jne 0x10015d34
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x100159d1
xor eax, eax
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
mov dword [esp + 0x10], 0
je 0x10015d42
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push ecx
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
push esi
lea edx, [esp + 0x24]
mov dword [ecx + 0xc], eax
call fcn.10023600
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10015982
call fcn.1000da30
test eax, eax
mov dword [esp + 0x2c], eax
je 0x10015982
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 0x10015aa4
mov esi, dword [eax + 0x28]
test esi, esi
je 0x10015a88
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x10015dfe
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10015a70
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 + 0x2c], eax
jne 0x10015a69
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 + 0x8c], esi
call edx
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x20]
mov ecx, ebx
call edx
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0xcb0], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
cmp esi, edx
mov byte [esp + 0xcb0], 5
mov dword [esp + 0x14], edx
jbe 0x10015bcc
mov edi, edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x14]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x29c]
push ecx
push edi
mov ecx, ebx
call edx
lea eax, [esp + 0x29c]
lea esi, [esp + 0x54]
call fcn.10008c70
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 + 0x78], eax
jbe 0x10015bb0
lea ebx, [ebx]
mov eax, dword [ebx]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
lea ecx, [esp + 0x9c]
push ecx
push edi
push edx
mov ecx, ebx
call eax
lea eax, [esp + 0x9c]
lea esi, [esp + 0x1c]
call fcn.10008d40
add edi, 1
cmp edi, dword [esp + 0x78]
jb 0x10015b80
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
jb 0x10015b40
mov edx, dword [esp + 0x20]
xor edi, edi
cmp dword [esp + 0x18], edi
jbe 0x10015c03
mov edx, dword [ebx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x29c]
push eax
push edi
mov ecx, ebx
call edx
lea eax, [esp + 0x29c]
lea esi, [esp + 0x7c]
call fcn.10008c70
add edi, 1
cmp edi, dword [esp + 0x18]
jb 0x10015bd4
mov edx, dword [esp + 0x20]
xor edi, edi
cmp dword [esp + 0x10], edi
jbe 0x10015c3f
jmp 0x10015c10
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x29c]
push ecx
push edi
mov ecx, ebx
call edx
lea eax, [esp + 0x29c]
lea esi, [esp + 0x30]
call fcn.10008c70
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x10015c10
mov edx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea ecx, [ecx]
cmp edx, edi
je 0x10015f74
mov eax, dword [esp + 0x24]
sub eax, edx
sar eax, 9
cmp dword [esp + 0x14], eax
jae 0x10015f74
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0x18]
cmp esi, edi
je 0x10015c92
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10015e0c
mov esi, dword [esi + 0x28]
cmp esi, edi
jne 0x10015c76
mov edx, dword [esp + 0x20]
xor eax, eax
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x10015f46
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x4c]
add ecx, 0x2c
cmp eax, ecx
je 0x10015cd6
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 0x10015e1e
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
add ecx, 0x2c
cmp eax, ecx
jne 0x10015cae
xor eax, eax
movsx ecx, byte [eax]
sub ecx, 0x30
jne 0x10015f14
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x4c]
add ebx, 0x2c
cmp eax, ebx
je 0x10015e43
jmp 0x10015d00
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 0x10015e29
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x10015d00
jmp 0x10015e43
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
jmp 0x100159ca
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
jmp 0x100159eb
call fcn.1000da30
test eax, eax
mov dword [esp + 0x10], eax
je 0x10015982
xor eax, eax
add esi, 8
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x18], esi
jmp 0x10015d80
mov edi, dword [esp + 0x10]
add edi, 0x2c
mov esi, 0x1004c3c4
call fcn.1003a8e0
test eax, eax
je 0x10015d9d
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10015d9f
xor eax, eax
push eax
lea edi, [esp + 0x90]
call fcn.1000d640
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, edi
call fcn.1000d340
test eax, eax
jne 0x10015a36
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x28]
test esi, esi
je 0x10015de4
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10015df3
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10015dd0
xor eax, eax
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10015d80
jmp 0x100162b4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x10015de6
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x10015a8a
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov edx, dword [esp + 0x20]
jmp 0x10015c94
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10015cd8
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x40]
push ecx
add edx, 8
push 0x1004c760
push edx
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
mov eax, dword [ebx + 0x20]
cmp eax, ebx
je 0x10015e71
lea ebx, [ebx]
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 0x10015f5a
mov eax, dword [eax + 0x20]
cmp eax, ebx
jne 0x10015e50
xor eax, eax
push eax
call dword [sym.imp.MSVCR80.dll__atoi64]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x24]
add esp, 4
test edx, edx
mov ebx, eax
je 0x10015e9f
mov eax, dword [esp + 0x24]
sub eax, edx
sar eax, 9
cmp edi, eax
jb 0x10015ea9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + edx + 0xde]
cmp eax, dword [esp + 0x40]
jne 0x10015f14
test edx, edx
je 0x10015ecb
mov eax, dword [esp + 0x24]
sub eax, edx
sar eax, 9
cmp edi, eax
jb 0x10015ed5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + edx]
cmp ecx, ebx
jne 0x10015f14
mov eax, dword [esi + edx + 4]
cmp eax, dword [esp + 0x90]
jne 0x10015f14
test edx, edx
je 0x10015efa
mov eax, dword [esp + 0x24]
sub eax, edx
sar eax, 9
cmp edi, eax
jb 0x10015f04
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x20]
lea eax, [esi + edx]
lea esi, [esp + 0x64]
call fcn.10008d40
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x28]
test esi, esi
je 0x10015f38
nop
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10015f65
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10015f20
mov edx, dword [esp + 0x20]
xor eax, eax
test eax, eax
mov dword [esp + 0x10], eax
jne 0x10015ca0
add dword [esp + 0x14], 1
add dword [esp + 0x18], 0x200
xor edi, edi
jmp 0x10015c50
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10015e73
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov edx, dword [esp + 0x20]
jmp 0x10015f3a
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea esp, [esp]
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x100161ea
mov ecx, dword [esp + 0x38]
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 0x100161ea
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx + 0x18]
cmp esi, edi
je 0x10015fcc
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10016041
mov esi, dword [esi + 0x28]
cmp esi, edi
jne 0x10015fb8
xor eax, eax
cmp eax, edi
mov edx, eax
mov dword [esp + 0x10], edx
je 0x100161cb
mov eax, dword [edx + 0x4c]
add edx, 0x2c
cmp eax, edx
je 0x10016003
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 0x1001604c
mov eax, dword [eax + 0x20]
cmp eax, edx
jne 0x10015fe6
xor eax, eax
movsx ecx, byte [eax]
sub ecx, 0x30
cmp ecx, 1
jne 0x1001619c
mov eax, dword [edx + 0x20]
cmp eax, edx
je 0x1001619c
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 0x10016054
mov eax, dword [eax + 0x20]
cmp eax, edx
jne 0x1001601f
jmp 0x1001619c
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x10015fce
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x10016005
mov eax, dword [eax + 0x18]
add eax, 8
je 0x1001619c
mov eax, dword [edx + 0x20]
cmp eax, edx
mov ebx, 0x20
je 0x10016098
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 0x1001614a
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
add ecx, 0x2c
cmp eax, ecx
jne 0x10016070
xor esi, esi
cmp dword [esp + 0x34], 0
je 0x100160c0
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
mov eax, 0x66666667
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x100160c6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
lea eax, [eax + ecx + 0x6d6]
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x100160ed
sub ebx, 4
add esi, 4
add eax, 4
cmp ebx, 4
jae 0x100160d5
test ebx, ebx
je 0x10016155
movzx ecx, byte [eax]
movzx edx, byte [esi]
sub ecx, edx
jne 0x1001613c
sub ebx, 1
add esi, 1
add eax, 1
test ebx, ebx
je 0x10016155
movzx ecx, byte [eax]
movzx edx, byte [esi]
sub ecx, edx
jne 0x1001613c
sub ebx, 1
add esi, 1
add eax, 1
test ebx, ebx
je 0x10016155
movzx ecx, byte [eax]
movzx edx, byte [esi]
sub ecx, edx
jne 0x1001613c
sub ebx, 1
add esi, 1
add eax, 1
test ebx, ebx
je 0x10016155
movzx ecx, byte [eax]
movzx eax, byte [esi]
sub ecx, eax
je 0x10016155
test ecx, ecx
mov eax, 1
jg 0x10016157
or eax, 0xffffffff
jmp 0x10016157
mov esi, dword [eax + 0x18]
add esi, 8
jmp 0x1001609a
xor eax, eax
test eax, eax
jne 0x1001619c
mov esi, dword [esp + 0x34]
test esi, esi
je 0x10016182
mov eax, dword [esp + 0x38]
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 0x1001618c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
lea eax, [ecx + esi]
lea esi, [esp + 0x44]
call fcn.10008c70
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 0x28]
test esi, esi
je 0x100161bb
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x100161df
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100161a7
xor eax, eax
test eax, eax
mov edx, eax
mov dword [esp + 0x10], edx
jne 0x10015fdc
add dword [esp + 0x14], 1
add dword [esp + 0x18], 0xa00
xor edi, edi
jmp 0x10015f80
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x100161bd
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call eax
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x1001621e
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x68]
cmp eax, edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
je 0x1001623b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
je 0x10016258
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
je 0x10016275
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
je 0x10016292
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x80]
cmp eax, edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
je 0x100162b2
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xca8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc90]
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 8