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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
push esi
mov edi, dword [esi + 0x70]
mov dword [esp + 0x24], edi
call sym.ITEuDllvMgr.dll_FLH_GetRealBlocksPerDie
xor ebx, ebx
mov dword [esp + 0x44], eax
mov bl, byte [esi + 0x77]
mov eax, dword [esi + 0x70]
xor edx, edx
xor ecx, ecx
div ebx
add esp, 4
mov ebp, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], ecx
mov ebx, 2
mov dword [esp + 0x3c], eax
mov eax, 0x51eb851f
mul edi
shr edx, 5
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x64]
cmp edx, ecx
jne 0x10159013
mov byte [esp + 0x2c], cl
jmp 0x10159033
cmp edx, ebp
jne 0x1015901e
mov byte [esp + 0x2c], 0
jmp 0x10159033
cmp edx, ebx
jne 0x10159029
mov byte [esp + 0x2c], 0x10
jmp 0x10159033
cmp edx, 3
jne 0x10159033
mov byte [esp + 0x2c], 0x20
mov al, byte [esi + 0xf0]
xor edi, edi
cmp al, 1
mov dword [esp + 0x28], ecx
jne 0x101590cc
cmp word [esi + 0x22], cx
jbe 0x10159070
lea ebp, [esi + 0xb0]
push edi
push ebp
call fcn.10167050
add esp, 8
test eax, eax
jne 0x1015906a
inc edi
cmp di, word [esi + 0x22]
jb 0x10159053
jmp 0x1015906e
mov dword [esp + 0x28], edi
xor ecx, ecx
mov di, word [esi + 0x22]
dec di
cmp di, word [esp + 0x28]
jbe 0x101590b4
lea ebp, [esi + 0xb0]
push edi
push ebp
call fcn.10167050
add esp, 8
test eax, eax
jne 0x101590ad
add edi, 0xffff
cmp di, word [esp + 0x28]
ja 0x10159083
mov ebp, dword [esp + 0x64]
xor ecx, ecx
mov dword [esp + 0x30], ecx
jmp 0x101594eb
test di, di
jne 0x101590c1
xor ecx, ecx
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x30], ecx
jmp 0x101594eb
mov edx, dword [esp + 0x64]
mov ebp, 1
xor ecx, ecx
mov al, byte [esi + 8]
and al, 0xc0
cmp al, 0x40
jne 0x101590fe
mov al, byte [esi + 0x7c]
cmp al, 3
je 0x101590e4
cmp al, 4
je 0x101590e4
cmp al, 6
jb 0x101590fe
mov edx, dword [esp + 0x50]
push edx
push ecx
push ebp
call sym.ITEuDllvMgr.dll_VDR_ConfigFlag4SAMReliable
mov edx, dword [esp + 0x70]
add esp, 0xc
mov ebp, 1
xor ecx, ecx
cmp edx, ebp
jne 0x10159288
xor eax, eax
mov al, byte [esi + 6]
shr eax, 4
cmp eax, 8
ja case.default.0x10159117
jmp dword [eax*4 + 0x1015950c]
mov byte [esp + 0x5c], bl
mov byte [esp + 0x13], bl
mov word [esp + 0x14], cx
mov word [esp + 0x16], bp
mov ax, word [esi + 0x68]
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], cx
mov word [esp + 0x1a], ax
jmp 0x101592cb
mov dx, word [esi + 0x22]
mov byte [esp + 0x5c], bl
dec dx
mov byte [esp + 0x13], bl
mov word [esp + 0x14], cx
mov word [esp + 0x16], dx
jmp 0x10159130
mov ax, word [esi + 0x22]
mov dx, word [esi + 0x68]
mov byte [esp + 0x5c], bl
mov byte [esp + 0x13], 1
lea ecx, [eax - 1]
add eax, 0xfffffffe
mov word [esp + 0x14], cx
mov word [esp + 0x16], ax
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], dx
jmp 0x101592cb
mov ax, word [esi + 0x22]
mov dx, word [esi + 0x68]
mov word [esp + 0x14], cx
mov cx, word [esi + 0x7d]
dec ax
mov byte [esp + 0x5c], bl
mov byte [esp + 0x13], 1
mov word [esp + 0x16], ax
mov word [esp + 0x1c], cx
mov word [esp + 0x18], dx
jmp 0x101592cb
mov ax, word [esi + 0x7d]
mov word [esp + 0x14], cx
mov cx, word [esi + 0x68]
mov byte [esp + 0x5c], 1
mov byte [esp + 0x13], 1
mov word [esp + 0x1c], ax
mov word [esp + 0x18], cx
jmp 0x101592cb
mov dx, word [esi + 0x68]
mov byte [esp + 0x5c], bl
mov byte [esp + 0x13], 1
mov word [esp + 0x14], cx
mov word [esp + 0x16], bp
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], dx
jmp 0x101592cb
mov ax, word [esi + 0x22]
mov cx, word [esi + 0x68]
dec ax
mov byte [esp + 0x5c], 1
mov byte [esp + 0x13], 1
mov word [esp + 0x14], ax
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], cx
jmp 0x101592cb
mov dx, word [esi + 0x7d]
mov ax, word [esi + 0x68]
mov byte [esp + 0x5c], bl
mov byte [esp + 0x13], 1
mov word [esp + 0x14], 0xb5
mov word [esp + 0x16], 0xbb
mov word [esp + 0x1c], dx
mov word [esp + 0x18], ax
jmp 0x101592cb
mov word [esp + 0x14], cx
mov cx, word [esi + 0x68]
mov byte [esp + 0x5c], bl
mov byte [esp + 0x13], 1
mov word [esp + 0x16], 0xf6
mov dword [esp + 0x1c], ebp
mov word [esp + 0x18], cx
jmp 0x101592cb
mov byte [esp + 0x5c], 0
jmp 0x101592cb
cmp edx, ecx
jne 0x101592cb
mov al, byte [esi + 0xf0]
mov byte [esp + 0x5c], bl
cmp al, 1
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x13], 1
mov word [esp + 0x18], 0x205
jne 0x101592bb
mov dx, word [esp + 0x28]
mov word [esp + 0x16], di
mov word [esp + 0x14], dx
jmp 0x101592cb
mov ax, word [esi + 0x22]
mov word [esp + 0x14], cx
dec ax
mov word [esp + 0x16], ax
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x60]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x200
and ecx, 3
rep stosb byte es:[edi], al
call fcn.101d175d
mov edi, dword [esp + 0x24]
add esp, 4
test edi, edi
mov ebp, eax
je 0x101594e4
jmp 0x10159304
mov edi, dword [esp + 0x20]
cmp edi, 0x200
jb 0x10159311
mov edi, 0x200
mov eax, dword [esp + 0x6c]
cmp dword [eax], 0
jne 0x101594eb
mov ebx, dword [esp + 0x24]
push ebx
push esi
call sym.ITEuDllvMgr.dll_FLH_BlockIsGap
add esp, 8
test eax, eax
je 0x1015934f
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
sub eax, edi
add ebx, eax
sub ecx, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
jmp 0x101594d8
lea ecx, [edi + ebx - 1]
push ecx
push esi
call sym.ITEuDllvMgr.dll_FLH_BlockIsGap
add esp, 8
test eax, eax
je 0x1015936e
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
dec edx
and edx, ebx
sub edi, edx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x101593df
cmp eax, 1
je 0x101593df
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push eax
push ebx
push ecx
push edx
push esi
call sym.ITEuDllvMgr.dll_CCBAddress2RawAddress
mov ecx, dword [esp + 0x64]
mov dx, word [esi + 0x78]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov dx, word [esi + 0x6c]
push ecx
push ebp
push edx
push edi
push 0x205
push 1
push eax
call sym.ITEuDllvMgr.dll_VDR_MassBlocksProcess
add esp, 0x38
test eax, eax
je 0x10159500
xor eax, eax
test edi, edi
jbe 0x101594a8
mov ecx, dword [esp + 0x60]
add ecx, ebx
mov dl, byte [eax + ebp]
or byte [ecx + eax], dl
inc eax
cmp eax, edi
jb 0x101593cf
jmp 0x101594a8
mov al, byte [esp + 0x5c]
mov byte [esp + 0x38], 0
test al, al
jbe 0x101594a8
mov al, byte [esp + 0x13]
mov byte [esp + 0x34], 0
test al, al
jbe 0x10159492
mov eax, dword [esp + 0x38]
and eax, 0xff
mov bx, word [esp + eax*2 + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
push ebx
push ecx
push edx
push eax
push esi
call sym.ITEuDllvMgr.dll_CCBAddress2RawAddress
mov ecx, dword [esp + 0x64]
mov dx, word [esi + 0x78]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov dx, word [esi + 0x6c]
push ecx
mov ecx, dword [esp + 0x54]
and ecx, 0xff
push ebp
push edx
push edi
mov dx, word [esp + ecx*2 + 0x44]
mov ecx, dword [esp + 0x48]
push edx
push ecx
push eax
call sym.ITEuDllvMgr.dll_VDR_MassBlocksProcess
add esp, 0x38
test eax, eax
je 0x10159500
xor eax, eax
test edi, edi
jbe 0x1015947c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
add ecx, edx
mov dl, byte [eax + ebp]
or byte [ecx + eax], dl
inc eax
cmp eax, edi
jb 0x10159471
mov al, byte [esp + 0x34]
mov cl, byte [esp + 0x13]
inc al
cmp al, cl
mov byte [esp + 0x34], al
jb 0x1015940f
mov ebx, dword [esp + 0x24]
mov al, byte [esp + 0x38]
mov cl, byte [esp + 0x5c]
inc al
cmp al, cl
mov byte [esp + 0x38], al
jb 0x101593f0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
cmp cx, dx
jb 0x101594c2
mov eax, dword [esp + 0x68]
sub ecx, edx
inc byte [eax]
cmp cx, dx
jae 0x101594b5
mov eax, dword [esp + 0x20]
add ecx, edi
add ebx, edi
sub eax, edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10159300
mov eax, dword [esp + 0x68]
mov byte [eax], 0x64
push ebp
call fcn.101d1786
mov eax, dword [esp + 0x34]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov dword [esp + 0x30], 0
jmp 0x101594eb