Function at 0x100d82a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101946a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edx, dword [ecx]
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x34], eax
mov eax, edi
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
cmp esi, eax
jne 0x100d8310
mov eax, dword [esp + 0x5c]
mov dword [eax], edx
mov edx, edi
mov dword [eax + 4], edx
mov edx, esi
mov ecx, ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x100d85d8
mov ecx, edi
sub ecx, eax
je 0x100d8579
sub ecx, 1
je 0x100d8420
sub ecx, 1
jne 0x100d85b5
mov edx, dword [ebx + 0xa4]
mov edi, dword [ebx + 0xa0]
mov dword [esp + 0x20], edi
cmp eax, edx
jb 0x100d83a1
ja 0x100d8346
cmp esi, edi
jb 0x100d83a1
mov dword [esp + 0x18], eax
cmp edx, eax
jb 0x100d8378
ja 0x100d8354
cmp edi, eax
jbe 0x100d8378
mov eax, dword [esp + 0x18]
movzx cx, byte [eax + ebp]
add word [esp + 0x14], cx
inc dword [esp + 0x18]
xor eax, eax
cmp eax, edx
jb 0x100d8354
ja 0x100d8376
mov eax, edi
cmp dword [esp + 0x18], eax
jb 0x100d8354
xor eax, eax
mov ecx, edi
add ebp, ecx
sub esi, ecx
add dword [ebx + 0xa8], edi
adc dword [ebx + 0xac], edx
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], eax
xor edx, edx
mov dword [esp + 0x30], esi
jmp 0x100d85ac
xor ecx, ecx
cmp esi, 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jl 0x100d83d1
movzx eax, byte [ecx + ebp]
add word [esp + 0x18], ax
movzx eax, byte [ecx + ebp + 1]
add word [esp + 0x1c], ax
add ecx, 2
lea eax, [esi - 1]
cmp ecx, eax
jb 0x100d83b0
mov edi, dword [esp + 0x20]
cmp ecx, esi
jae 0x100d83e1
movzx cx, byte [ecx + ebp]
movzx eax, cx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add ecx, eax
add dword [esp + 0x14], ecx
add dword [ebx + 0xa8], esi
mov eax, 0
adc dword [ebx + 0xac], eax
sub edi, esi
sbb edx, eax
mov dword [ebx + 0xa4], edx
xor edx, edx
mov dword [ebx + 0xa0], edi
lea edi, [eax + 2]
mov dword [esp + 0x30], edx
add ebp, esi
jmp 0x100d85b1
mov ecx, dword [ebx + 0xb0]
lea edx, [ecx + esi]
cmp edx, 0x10
jb 0x100d855a
cmp ecx, eax
jbe 0x100d848f
push ecx
mov eax, 0x10
sub eax, ecx
lea ecx, [ebx + 0xb4]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x90]
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.10173370
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0xb0]
push edx
lea ecx, [eax + ebx + 0x90]
push ebp
push ecx
call fcn.10173370
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0x18
sub esi, eax
add ebp, eax
mov dword [ebx + 0xb0], 0
xor eax, eax
jmp 0x100d84b6
mov edx, dword [ebp]
lea ecx, [ebx + 0x90]
mov dword [ecx], edx
mov edx, dword [ebp + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov edx, dword [ebp + 0xc]
sub esi, 0x10
mov dword [esp + 0x1c], ecx
mov dword [ecx + 0xc], edx
add ebp, 0x10
mov edx, dword [ebx + 0x94]
imul edx, dword [ebx + 0x7c]
movzx ecx, word [ecx]
sub ecx, 0xcac1
mov dword [ebx + 0xa0], edx
mov dword [ebx + 0xa4], eax
je 0x100d854f
sub ecx, 2
je 0x100d853c
push str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x255
lea esi, [esp + 0x3c]
call fcn.10111280
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], 0
movzx edx, word [ecx]
mov ecx, dword [0x103b321c]
push edx
push str._UNSPARSE__No_such_CHUNK_TYPE:_0x_x__n
push ecx
push eax
call fcn.10111350
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x40]
mov ecx, 0xc52
mov dword [eax], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
add esp, 0x10
mov dword [eax + 0xc], ecx
jmp 0x100d85d8
add dword [ebx + 0xa8], edx
mov ecx, eax
adc dword [ebx + 0xac], ecx
jmp 0x100d838a
xor edx, edx
lea edi, [edx + 2]
mov dword [esp + 0x30], esi
jmp 0x100d85b1
push esi
mov dword [ebx + 0xb0], esi
push ebp
add ebx, 0xb4
push ebx
call fcn.10173370
add esp, 0xc
xor edx, edx
mov dword [esp + 0x30], edx
jmp 0x100d85ac
cmp esi, 0x20
jb 0x100d85b5
push 0x50
push eax
lea edi, [ebx + 0x70]
push edi
call fcn.10173270
mov eax, dword [esp + 0x24]
mov esi, ebp
mov ecx, 8
xor edx, edx
add eax, 0xffffffe0
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0xb0], edx
mov dword [esp + 0x30], eax
add ebp, 0x20
mov edi, 1
mov dword [esp + 0x34], ebp
mov ecx, dword [esp + 0x60]
mov ax, word [esp + 0x14]
mov word [ecx], ax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8