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

Disassembly:
push 0xffffffffffffffff
push 0x101f09d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x1026a7a0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
xor esi, esi
push 0x800
mov dword [esp + 0x3c], esi
call fcn.101d175d
mov ebp, dword [esp + 0x54]
add esp, 4
mov edx, 1
mov ebx, eax
mov cl, byte [ebp + 8]
mov dword [esp + 0x1c], esi
and cl, 0xc0
mov dword [esp + 0x18], edx
cmp cl, 0x80
jne 0x10163957
mov cl, byte [ebp + 0x7c]
cmp cl, 3
jne 0x10163940
mov al, byte [ebp + 0xac]
cmp al, cl
je 0x1016393c
cmp al, 4
jne 0x10163940
mov dword [esp + 0x18], esi
cmp cl, 6
jb 0x10163957
mov al, byte [ebp + 0xac]
cmp al, 0x16
je 0x10163953
cmp al, 0x17
jne 0x10163957
mov dword [esp + 0x18], esi
mov al, byte [ebp + 0x7c]
cmp al, 2
je 0x10163962
test al, al
jne 0x1016396f
cmp byte [ebp + 0xf0], 1
je 0x1016396f
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], esi
cmp word [edx + 0x80b2], si
jbe 0x10163c08
mov ecx, 0x200
or eax, 0xffffffff
mov edi, ebx
mov dword [esp + 0x50], 0x400
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4c]
cmp eax, 0x400
ja 0x101639a7
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
and eax, 0xffff
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x14]
push str.LUT_02d
push eax
call fcn.101cb906
mov ecx, dword [esp + 0x1c]
push 0x800
push ebx
push ecx
call fcn.10165270
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x60]
mov edi, ebx
push ebp
lea eax, [edx + edx]
mov dword [esp + 0x30], 0
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x64]
and ecx, 3
add edx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x44]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x68]
sub ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x60]
lea esi, [ecx + edx*8 + 0xb0]
push esi
mov dword [esp + 0x4c], esi
call sym.ITEuDllvMgr.dll_SDKFAddress2RawAddress
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x60]
add esp, 0x20
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x10163a68
push edi
push eax
call sym.ITEuDllvMgr.dll_VDR_BlockErase
add esp, 8
cmp eax, 0x3f
mov dword [esp + 0x50], eax
je 0x10163c51
mov cl, byte [ebp + 0xf3]
test cl, cl
jne 0x10163a68
cmp eax, 1
jne 0x10163c3a
push ebp
push esi
call sym.ITEuDllvMgr.dll_SDKFAddress2RawAddress
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push ebp
push 6
push ebx
push 0x800
push esi
push edi
call fcn.10152d50
add esp, 0x24
cmp eax, 1
mov dword [esp + 0x50], eax
jne 0x10163c41
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10163ae2
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov cl, byte [ebp + 0xf1]
sub esi, ecx
test eax, eax
je 0x10163ab3
inc esi
jmp 0x10163abd
xor edx, edx
mov dl, byte [ebp + 0xf2]
add esi, edx
mov eax, dword [esp + 0x14]
push eax
push ebp
push 6
push ebx
push 0x800
push esi
push edi
call fcn.10152d50
add esp, 0x1c
cmp eax, 1
mov dword [esp + 0x50], eax
jne 0x10163c49
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10163afb
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], 1
jmp 0x10163a68
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x18], 0
lea esi, [ecx + edx*8 + 0xb4]
push esi
mov dword [esp + 0x34], esi
call sym.ITEuDllvMgr.dll_SDKFAddress2RawAddress
mov ecx, dword [esp + 0x60]
add esp, 8
test ecx, ecx
mov dword [esp + 0x24], eax
je 0x10163b5e
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10163b5e
push edi
push eax
call sym.ITEuDllvMgr.dll_VDR_BlockErase
add esp, 8
cmp eax, 0x3f
mov dword [esp + 0x50], eax
je 0x10163c51
mov cl, byte [ebp + 0xf3]
test cl, cl
jne 0x10163b5e
cmp eax, 1
jne 0x10163c8a
push ebp
push esi
call sym.ITEuDllvMgr.dll_SDKFAddress2RawAddress
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push ebp
push 6
push ebx
push 0x800
push esi
push edi
call fcn.10152d50
add esp, 0x24
cmp eax, 1
mov dword [esp + 0x50], eax
jne 0x10163c49
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x10163bd5
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10163bd5
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [ebp + 0xf2]
xor edx, edx
mov dl, byte [ebp + 0xf1]
push eax
sub ecx, edx
push ebp
push 6
add esi, ecx
push ebx
push 0x800
push esi
push edi
call fcn.10152d50
add esp, 0x1c
cmp eax, 1
mov dword [esp + 0x50], eax
jne 0x10163c96
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10163bee
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], 1
jmp 0x10163b5e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
inc eax
cmp ax, word [ecx + 0x80b2]
mov dword [esp + 0x20], eax
jb 0x10163984
push ebx
call fcn.101d1786
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.101d2b0c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov edx, dword [esp + 0x24]
push edx
jmp 0x10163c97
mov ecx, dword [esp + 0x54]
push esi
push ecx
jmp 0x10163c9c
mov edx, dword [esp + 0x54]
push esi
push edx
jmp 0x10163c9c
push ebx
mov byte [ebp + 0x11c], 0x3f
call fcn.101d1786
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.101d2b0c
pop edi
pop esi
pop ebp
mov eax, 0x3f
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
push eax
push ecx
jmp 0x10163c9c
push esi
mov eax, dword [esp + 0x58]
push eax
push ebp
push edi
call fcn.10163ce0
push ebx
call fcn.101d1786
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.101d2b0c
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret