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

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x154]
mov ecx, 0x1f
xor eax, eax
xor edx, edx
rep stosd dword es:[edi], eax
push 0x400
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x18], edx
call fcn.101d175d
mov ebp, dword [esp + 0x150]
mov ebx, eax
add esp, 4
mov dword [esp + 0x60], ebx
mov al, byte [ebp + 0x7c]
mov edi, 0xd
cmp al, 3
mov byte [esp + 0x20], 1
jne 0x10159e83
mov byte [esp + 0x20], 2
mov edi, 0x60d
jmp 0x10159e9c
cmp al, 6
jb 0x10159e8e
mov edi, 0x30f
jmp 0x10159e9c
cmp al, 4
jne 0x10159e9c
mov byte [esp + 0x20], 2
mov edi, 0x30d
mov esi, dword [esp + 0x144]
push 0
lea eax, [esp + 0xe8]
push ebp
push eax
push esi
or edi, 0x70
call sym.ITEuDllvMgr.dll_FLH_FindRootTable
mov cl, byte [ebp + 8]
add esp, 0x10
and cl, 0xc0
mov byte [esp + 0x13], al
cmp cl, 0x40
jne 0x10159f10
mov al, byte [ebp + 0x7c]
cmp al, 3
je 0x10159ef0
cmp al, 6
jae 0x10159ef0
cmp al, 4
jne 0x10159f10
push esi
push 0
push 1
call sym.ITEuDllvMgr.dll_VDR_ConfigFlag4SAMReliable
add esp, 0xc
test eax, eax
jne 0x10159f10
xor esi, esi
jmp 0x1015a76a
push esi
push 1
push 1
call sym.ITEuDllvMgr.dll_VDR_ConfigFlag4SAMReliable
add esp, 0xc
test eax, eax
jne 0x10159f08
xor esi, esi
jmp 0x1015a76a
mov dword [esp + 0x28], 1
mov al, byte [esp + 0x13]
test al, al
je 0x10159f5c
mov al, byte [ebp + 0x7c]
cmp al, 5
je 0x10159f3e
cmp al, 6
jae 0x10159f3e
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xf0]
push esi
push edi
push ebp
push ebx
push edx
push eax
call sym.ITEuDllvMgr.dll_VDR_ReadPage
add esp, 0x18
jmp 0x10159f57
mov ecx, dword [esp + 0xf0]
push esi
push ebx
push edi
push 1
push 0x40
push 1
push ecx
call sym.ITEuDllvMgr.dll_VDR_RootFindRead
add esp, 0x1c
cmp eax, 1
je 0x10159f63
xor esi, esi
jmp 0x1015a73b
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10159fa5
mov dl, byte [ebp + 8]
and dl, 0xc0
cmp dl, 0x40
jne 0x10159fa5
mov al, byte [ebp + 0x7c]
cmp al, 3
je 0x10159f85
cmp al, 4
je 0x10159f85
cmp al, 6
jb 0x10159fa5
push esi
push 1
push 1
call sym.ITEuDllvMgr.dll_VDR_ConfigFlag4SAMReliable
add esp, 0xc
test eax, eax
jne 0x10159f9d
xor esi, esi
jmp 0x1015a76a
mov dword [esp + 0x28], 1
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0x8c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
movzx ax, byte [ebx + 0xe]
shl eax, 9
mov dword [esp + 0x2c], eax
and eax, 0xffff
push eax
mov dword [esp + 0x38], eax
call fcn.101d175d
mov dword [esp + 0x18], eax
mov al, byte [ebp + 0x7c]
add esp, 4
cmp al, 5
jne 0x1015a088
mov dl, byte [ebx + 0x143]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x68]
mov byte [esp + 0x64], 5
push eax
mov byte [esp + 0x69], 0xe0
mov byte [esp + 0x6a], 0x85
mov byte [esp + 0x6b], dl
call sym.ITEuDllvMgr.dll_SwapWORD
mov cl, byte [ebx + 0xe]
lea edx, [esp + 0x6c]
add esp, 4
mov word [esp + 0x99], ax
mov byte [esp + 0x98], cl
xor esi, esi
mov dword [esp + 0x18], edx
lea edi, [ebx + 0x144]
push edi
call sym.ITEuDllvMgr.dll_SwapWORD
mov ecx, dword [esp + 0x1c]
add esp, 4
inc esi
add edi, 2
mov word [ecx], ax
mov al, byte [ebx + esi + 0x163]
mov byte [esp + esi + 0x87], al
add ecx, 2
cmp esi, 0x10
mov dword [esp + 0x18], ecx
jb 0x1015a03a
mov edx, dword [esp + 0x144]
lea ecx, [esp + 0x64]
push ecx
push edx
call sym.ITEuDllvMgr.dll_VDR_SetSegModePara
add esp, 8
test eax, eax
jne 0x1015a0ea
xor esi, esi
jmp 0x1015a73b
cmp al, 6
jb 0x1015a0ea
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x64]
add ebx, 0x180
rep stosd dword es:[edi], eax
mov al, byte [ebx - 0xd0]
lea edi, [esp + 0x64]
mov byte [esp + 0xa4], al
mov esi, 0x20
push ebx
call sym.ITEuDllvMgr.dll_SwapWORD
mov word [edi], ax
add esp, 4
add ebx, 2
add edi, 2
dec esi
jne 0x1015a0b5
mov edx, dword [esp + 0x144]
lea ecx, [esp + 0x64]
push ecx
push edx
call sym.ITEuDllvMgr.dll_VDR_SetSegModePara_EXT
add esp, 8
test eax, eax
jne 0x1015a0ea
xor esi, esi
jmp 0x1015a73b
mov ecx, dword [esp + 0x60]
mov bx, word [ebp + 0x78]
mov edx, dword [esp + 0x44]
xor eax, eax
mov al, byte [ecx + 0xd1]
or bl, 0x70
mov dword [esp + 0x50], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x20], edx
call sym.ITEuDllvMgr.dll_SwapDWORD
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x5c]
push ecx
push edx
push ebx
push 6
push 0x200
push eax
mov dword [esp + 0x38], eax
call sym.ITEuDllvMgr.dll_VDR_ReadSpare
add esp, 0x1c
test eax, eax
jne 0x1015a144
xor esi, esi
jmp 0x1015a73b
mov ecx, 3
lea edi, [esp + 0x58]
mov esi, 0x1027ed8c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1015a15f
xor esi, esi
jmp 0x1015a73b
mov ecx, dword [esp + 0x144]
mov ax, word [esp + 0x2c]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push ebp
shr ax, 9
push edx
mov word [esp + 0x4c], ax
push eax
mov eax, dword [esp + 0x30]
push eax
call sym.ITEuDllvMgr.dll_VDR_ReadPage
add esp, 0x18
cmp eax, 1
je 0x1015a196
xor esi, esi
jmp 0x1015a73b
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x100]
mov ebx, 4
lea esi, [ecx + 0x88]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x108]
lea edi, [esi + 0x10]
push edi
call sym.ITEuDllvMgr.dll_SwapDWORD
push esi
mov dword [edi], eax
call sym.ITEuDllvMgr.dll_SwapDWORD
mov dword [esi], eax
add esp, 8
add esi, 4
dec ebx
jne 0x1015a1ba
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x154]
and edx, 0xff
push ecx
push ebp
add eax, dword [esp + edx*4 + 0x120]
push eax
mov dword [ecx + 0x70], eax
call fcn.10159cf0
push 0x2000
mov dword [esp + 0x30], 0
call fcn.101d175d
mov esi, dword [esp + 0x154]
mov ebx, eax
push esi
call sym.ITEuDllvMgr.dll_VDR_CheckSYSReady
add esp, 0x14
test eax, eax
je 0x1015a270
lea eax, [esp + 0x30]
push eax
push 1
push ebp
push ebx
push esi
call sym.ITEuDllvMgr.dll_FLH_ReadLatestWBT
add esp, 0x14
test eax, eax
je 0x1015a270
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x28], 0
and ecx, 3
mov dword [esp + 0x20], 1
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x144]
push ebx
call fcn.101d1786
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x1015a2b9
mov al, byte [ebp + 8]
and al, 0xc0
cmp al, 0x40
jne 0x1015a2b9
mov al, byte [ebp + 0x7c]
cmp al, 3
je 0x1015a299
cmp al, 4
je 0x1015a299
cmp al, 6
jb 0x1015a2b9
push esi
push 1
push 1
call sym.ITEuDllvMgr.dll_VDR_ConfigFlag4SAMReliable
add esp, 0xc
test eax, eax
jne 0x1015a2b1
xor esi, esi
jmp 0x1015a757
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1015a588
mov al, byte [ebp + 0x7c]
mov byte [esp + 0x13], 1
cmp al, 5
je 0x1015a2d5
cmp al, 6
jb 0x1015a2dc
mov cl, byte [ebp + 9]
mov byte [esp + 0x13], cl
mov al, byte [esp + 0x13]
mov byte [esp + 0x18], 0
test al, al
jbe 0x1015a4e3
mov eax, dword [ebp + 0x70]
mov dword [esp + 0x40], 0
test eax, eax
jbe 0x1015a4c5
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
push 0
push edx
push ebx
push 0
push ebp
call sym.ITEuDllvMgr.dll_CCBAddress2RawAddress
mov ecx, dword [esp + 0x158]
lea edx, [esp + 0x6c]
push ecx
mov cx, word [ebp + 0x78]
push edx
push ecx
push 6
push 0x200
push eax
mov dword [esp + 0x60], eax
call sym.ITEuDllvMgr.dll_VDR_ReadSpare
add esp, 0x2c
test eax, eax
je 0x1015a4a2
mov ecx, 3
lea edi, [esp + 0x58]
mov esi, 0x1027ee78
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1015a4a2
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x38]
push ecx
push ebp
push esi
push edx
push eax
call sym.ITEuDllvMgr.dll_VDR_ReadPage
add esp, 0x18
cmp eax, 1
jne 0x1015a57b
push esi
call sym.ITEuDllvMgr.dll_SwapWORD
mov di, ax
mov al, byte [ebp + 0x7c]
add esp, 4
and edi, 0xffff
cmp al, 5
jne 0x1015a3a9
mov ecx, esi
add ecx, 2
push ecx
jmp 0x1015a3b1
mov edx, dword [esp + 0x14]
add edx, 4
push edx
call sym.ITEuDllvMgr.dll_SwapWORD
mov si, ax
mov eax, dword [esp + 0x44]
and esi, 0xffff
and edi, 0x3fff
add esp, 4
and esi, 0x3fff
cmp edi, eax
jne 0x1015a3ff
push 0
push edi
push ebx
push 0
push ebp
call sym.ITEuDllvMgr.dll_CCBAddress2RawAddress
push 0
push esi
push ebx
push 0
push ebp
mov dword [esp + 0x6c], eax
call sym.ITEuDllvMgr.dll_CCBAddress2RawAddress
add esp, 0x28
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], esi
jmp 0x1015a42a
cmp esi, eax
jne 0x1015a42a
push 0
push edi
push ebx
push 0
push ebp
call sym.ITEuDllvMgr.dll_CCBAddress2RawAddress
push 0
push esi
push ebx
push 0
push ebp
mov dword [esp + 0x6c], eax
call sym.ITEuDllvMgr.dll_CCBAddress2RawAddress
add esp, 0x28
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x2c]
push 0
push eax
push ebx
push 0
push ebp
call sym.ITEuDllvMgr.dll_CCBAddress2RawAddress
mov ecx, dword [esp + 0x158]
lea edx, [esp + 0x6c]
push ecx
mov cx, word [ebp + 0x78]
push edx
push ecx
push 6
push 0x200
push eax
mov dword [esp + 0x60], eax
call sym.ITEuDllvMgr.dll_VDR_ReadSpare
add esp, 0x2c
test eax, eax
je 0x1015a4a2
mov ecx, 3
lea edi, [esp + 0x58]
mov esi, 0x1027ee78
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1015a4a2
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
push ebp
push edx
push eax
push ecx
call sym.ITEuDllvMgr.dll_VDR_ReadPage
add esp, 0x18
cmp eax, 1
je 0x1015a4bd
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov ecx, dword [ebp + 0x70]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x40], eax
jb 0x1015a304
jmp 0x1015a4c5
mov dword [esp + 0x20], 1
mov al, byte [esp + 0x18]
mov cl, byte [esp + 0x13]
inc al
cmp al, cl
mov byte [esp + 0x18], al
jb 0x1015a2ed
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1015a4ea
xor esi, esi
jmp 0x1015a73b
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x54]
push edx
push eax
push ebp
call sym.ITEuDllvMgr.dll_RawAddress2SDKFAddress
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x58]
push ecx
push edx
push ebp
call sym.ITEuDllvMgr.dll_RawAddress2SDKFAddress
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x15c]
lea eax, [esp + 0x48]
push eax
push ecx
push edx
push ebp
push esi
call sym.ITEuDllvMgr.dll_GetLastestPage
add esp, 0x2c
test eax, eax
je 0x1015a57b
lea eax, [esp + 0x30]
push ebp
push eax
call sym.ITEuDllvMgr.dll_SDKFAddress2RawAddress
mov ecx, dword [esp + 0x15c]
mov dword [esp + 0x24], eax
lea edx, [ecx + 8]
push edx
lea edx, [ecx + 4]
push edx
lea edx, [ecx + 1]
push edx
push ecx
push eax
push ebp
call sym.ITEuDllvMgr.dll_RawAddress2CCBAddress
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x5c]
push esi
push eax
mov eax, dword [esp + 0x44]
push ebp
push ecx
push edx
push eax
call sym.ITEuDllvMgr.dll_VDR_ReadPage
add esp, 0x38
cmp eax, 1
je 0x1015a588
mov dword [esp + 0x24], 0
jmp 0x1015a737
mov esi, dword [esp + 0x154]
mov edi, dword [esp + 0x14]
xor eax, eax
mov ebx, dword [esp + 0x144]
mov al, byte [esi + 0x74]
lea edx, [esp + 0x30]
push edx
mov ecx, dword [edi + eax*8 + 8]
mov dword [esp + 0x58], ecx
mov eax, dword [edi + eax*8 + 0xc]
push eax
push ecx
push ebp
push ebx
mov dword [esp + 0x60], eax
call sym.ITEuDllvMgr.dll_GetLastestPage
add esp, 0x14
test eax, eax
je 0x10159f5c
lea eax, [esp + 0x30]
push ebp
push eax
call sym.ITEuDllvMgr.dll_SDKFAddress2RawAddress
lea ecx, [esi + 0x14]
lea edx, [esi + 0x10]
push ecx
push edx
lea ecx, [esi + 0xd]
lea edx, [esi + 0xc]
push ecx
push edx
push eax
push ebp
mov dword [esp + 0x3c], eax
call sym.ITEuDllvMgr.dll_RawAddress2CCBAddress
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
push ebx
push eax
push ebp
push edi
push ecx
push edx
call sym.ITEuDllvMgr.dll_VDR_ReadPage
add esp, 0x38
cmp eax, 1
je 0x1015a614
xor esi, esi
jmp 0x1015a73b
xor eax, eax
lea edx, [esp + 0x30]
mov ax, word [esi + 0x76]
push edx
mov ecx, dword [edi + eax*8]
lea eax, [edi + eax*8]
mov dword [esp + 0x58], ecx
mov eax, dword [eax + 4]
push eax
push ecx
push ebp
push ebx
mov dword [esp + 0x60], eax
call sym.ITEuDllvMgr.dll_GetLastestPage
add esp, 0x14
test eax, eax
je 0x10159f5c
lea eax, [esp + 0x30]
push ebp
push eax
call sym.ITEuDllvMgr.dll_SDKFAddress2RawAddress
lea ecx, [esi + 0x20]
lea edx, [esi + 0x1c]
push ecx
push edx
lea ecx, [esi + 0x19]
lea edx, [esi + 0x18]
push ecx
push edx
push eax
push ebp
mov dword [esp + 0x3c], eax
call sym.ITEuDllvMgr.dll_RawAddress2CCBAddress
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
push ebx
push eax
push ebp
push edi
push ecx
push edx
call sym.ITEuDllvMgr.dll_VDR_ReadPage
add esp, 0x38
cmp eax, 1
je 0x1015a690
xor esi, esi
jmp 0x1015a73b
movzx di, byte [ebp + 0xa]
movzx ax, byte [ebp + 0xb]
imul edi, eax
shl edi, 1
xor ecx, ecx
and edi, 0xffff
mov cx, word [esi + 0x7a]
mov edx, dword [esp + 0x14]
imul ecx, edi
xor ebx, ebx
test edi, edi
lea eax, [edx + ecx*2]
jbe 0x1015a701
mov dword [esp + 0x18], eax
lea eax, [esi + 0x30]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
push ecx
call sym.ITEuDllvMgr.dll_SwapWORD
mov ecx, dword [esp + 0x30]
mov edx, eax
shr ax, 0xe
and edx, 0x3fff
mov byte [esp + ebx + 0x68], al
mov eax, dword [esp + 0x1c]
add esp, 4
mov word [ecx], dx
inc ebx
add eax, 2
add ecx, 2
cmp ebx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
jb 0x1015a6c6
mov al, byte [esi + 0x78]
mov bl, byte [esi + 0x24]
imul byte [ebp + 0xb]
add al, bl
xor ecx, ecx
mov byte [esp + 0x50], al
mov eax, dword [esp + 0x50]
and eax, 0xff
mov cx, word [esi + eax*2 + 0x30]
mov dword [esi + 0x28], ecx
mov cl, byte [ebp + 0x7c]
cmp cl, 5
je 0x1015a730
cmp cl, 6
jb 0x1015a737
mov dl, byte [esp + eax + 0x64]
mov byte [esi + 0x25], dl
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1015a757
mov eax, dword [esp + 0x144]
push eax
push 0
push 1
call sym.ITEuDllvMgr.dll_VDR_ConfigFlag4SAMReliable
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1015a76a
mov ecx, eax
push ecx
call fcn.101d1786
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1015a77b
push eax
call fcn.101d1786
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret