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

Disassembly:
push ebp
push edi
push esi
mov esi, eax
mov eax, ecx
push ebx
and eax, 6
sub esp, 0x17c
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], ecx
cmp eax, 6
je 0x6adafe60
mov eax, dword [esi]
lea ebp, [eax - 0x60]
cmp esi, eax
je 0x6adafe8a
mov ebx, dword [0x6ae132b8]
mov edi, ebx
jmp 0x6adaf902
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 8]
je 0x6adaf929
mov eax, dword [ebp + 0x60]
lea ebp, [eax - 0x60]
cmp esi, eax
je 0x6adaf94c
test byte [ebp + 0x2d], 1
jne 0x6adaf8f0
mov dword [esp + 8], 0x53f
mov dword [esp + 4], str.src_write.c
mov dword [esp], str.blob__will_be_in_output_wim
call ebx
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 8]
jne 0x6adaf8f8
mov dword [esp + 8], 0x540
mov dword [esp + 4], str.src_write.c
mov dword [esp], str.blob__size___0
call edi
mov eax, dword [ebp + 0x60]
lea ebp, [eax - 0x60]
cmp esi, eax
jne 0x6adaf902
mov eax, dword [esi]
cmp esi, eax
je 0x6adafe8a
test byte [esp + 0x38], 8
jne 0x6adb003e
lea edx, [esp + 0xb4]
xor eax, eax
mov ecx, 0x2f
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0x60
mov dword [esp], esi
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x128], eax
call fcn.6ad82ae0
mov dword [esp + 0x3c], eax
test eax, eax
je 0x6adaf9f0
mov eax, dword [esp + 0x3c]
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi]
mov dword [esp + 0x54], eax
lea edx, [eax - 0x60]
cmp esi, eax
je 0x6adb0368
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x50], 0
mov eax, edx
mov dword [esp + 0x48], 0
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x28], esi
jmp 0x6adafa4c
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp dword [esp + 0x28], edx
je 0x6adafaa8
movzx edx, byte [eax + 0x2c]
add dword [esp + 0x20], 1
adc dword [esp + 0x24], 0
add edi, dword [eax + 8]
adc ebp, dword [eax + 0xc]
and edx, 0xf
cmp dl, 1
jne 0x6adafa40
mov ebx, dword [eax + 0x30]
mov dword [esp + 0x40], ebx
mov edx, dword [ebx]
cmp edx, dword [esp + 0x30]
je 0x6adafa81
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
test byte [edx + 0x178], 4
je 0x6adafa98
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x40], ecx
jne 0x6adb0078
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp dword [esp + 0x28], edx
jne 0x6adafa4c
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
test byte [esp + 0x38], 0x10
jne 0x6adb0020
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x1a8]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
cmp esi, dword [esp + 0x54]
je 0x6adafea1
lea esi, [esi]
nop
movzx eax, byte [edx + 0x2c]
and eax, 0xf
cmp al, 1
jne 0x6adafb92
mov eax, dword [edx + 0x30]
and byte [eax + 0x29], 0xfd
mov eax, dword [edx + 0x60]
lea edx, [eax - 0x60]
cmp esi, eax
jne 0x6adafb80
mov eax, dword [esi]
mov edi, dword [eax]
lea ebp, [eax - 0x60]
lea ecx, [edi - 0x60]
mov edi, eax
cmp esi, eax
je 0x6adafea1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov ebx, eax
shr eax, 1
and ebx, 1
and eax, 1
mov dword [esp + 0x20], ebx
mov byte [esp + 0x30], al
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x6adafc30
movzx eax, byte [ebp + 0x2c]
and eax, 0xf
cmp al, 1
jne 0x6adafc30
mov ebx, dword [ebp + 0x30]
mov eax, dword [ebx]
test byte [eax + 0x178], 4
jne 0x6adafd30
mov eax, dword [esp + 0x190]
test eax, eax
je 0x6adafc30
movzx eax, byte [ebx + 0x28]
test al, 0x14
je 0x6adafc30
movzx edx, byte [ebx + 0x29]
mov byte [esp + 0x40], dl
and edx, 1
cmp dl, byte [esp + 0x30]
je 0x6adafc58
lea esi, [esi]
mov eax, dword [ecx + 0x60]
mov edi, dword [ebp + 8]
add dword [esp + 0x28], edi
lea edi, [ecx + 0x60]
mov ebp, dword [ebp + 0xc]
adc dword [esp + 0x2c], ebp
sub eax, 0x60
mov ebp, ecx
cmp esi, edi
je 0x6adafd66
mov ecx, eax
jmp 0x6adafbe0
mov edx, eax
shr dl, 4
and edx, 1
mov byte [esp + 0x48], dl
mov edx, dword [esp + 0x38]
shr edx, 2
and edx, 1
cmp byte [esp + 0x48], dl
jne 0x6adafc30
test al, 4
jne 0x6adb02d4
test byte [esp + 0x40], 2
jne 0x6adafd30
mov edx, dword [ebx + 0x20]
lea eax, [edx - 0x40]
mov dword [esp + 0x48], eax
lea eax, [ebx + 0x20]
mov dword [esp + 0x50], eax
cmp eax, edx
je 0x6adafc30
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], 0
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov dword [esp + 0x5c], ebx
xor ebx, ebx
lea esi, [esi]
test byte [eax + 0x2d], 1
je 0x6adafcd4
add ecx, dword [eax + 8]
adc ebx, dword [eax + 0xc]
mov edx, dword [eax + 0x40]
lea eax, [edx - 0x40]
cmp edi, edx
jne 0x6adafcc8
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov dword [esp + 8], 3
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0x58]
shld edx, eax, 1
add eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.6adfb3e0
cmp eax, dword [esp + 0x40]
sbb edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
jae 0x6adafc30
or byte [ebx + 0x29], 2
mov eax, dword [ebp + 0x60]
lea ebx, [esp + 0x70]
mov edx, dword [ebp + 0x64]
mov dword [edx], eax
mov dword [eax + 4], edx
mov eax, dword [esp + 0x74]
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], eax
mov ebp, ecx
mov dword [esp + 0x74], edi
mov dword [eax], edi
mov eax, dword [ecx + 0x60]
lea edi, [ecx + 0x60]
sub eax, 0x60
cmp esi, edi
jne 0x6adafc51
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, edi
or eax, ebp
je 0x6adafeb8
mov edx, dword [esp + 0x190]
test edx, edx
je 0x6adafeb8
cmp dword [esp + 0x194], 0x1e8480
mov ecx, 0x1e8480
cmovae ecx, dword [esp + 0x194]
xor edx, edx
mov eax, edx
cmp ecx, edi
sbb eax, ebp
jb 0x6adb0300
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adb0377
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x1a8], edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x1a4], edi
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0xe0], edx
test eax, eax
je 0x6adafed8
mov eax, dword [esp + 0x1a8]
mov dword [esp], 0xc
mov dword [esp + 8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 4], eax
call dword [esp + 0x1a4]
test eax, eax
je 0x6adafed8
cmp eax, 1
setne al
movzx eax, al
add eax, 0x4c
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x158]
mov dword [esp], eax
call fcn.6adab650
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adaf9d9
mov dword [esp], eax
call dword [eax + 0xc]
mov eax, dword [esp + 0x3c]
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x5cf
mov dword [esp + 4], str.src_write.c
mov dword [esp], str._write_resource_flags___0x00000004__0x00000002______0x00000004__0x00000002_
call dword [0x6ae132b8]
mov eax, dword [esi]
lea ebp, [eax - 0x60]
cmp esi, eax
jne 0x6adaf8df
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea esi, [esi]
mov eax, dword [esp + 0x12c]
mov edx, 1
test eax, eax
je 0x6adafddb
jmp 0x6adafdd8
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0xa0]
lea edi, [esp + 0x70]
lea ebx, [edx - 0x60]
mov ebp, eax
mov eax, ebx
cmp edi, edx
je 0x6adaff92
lea esi, [esi]
lea esi, [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x70]
or byte [edx + 0x29], 2
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp ecx, edx
jne 0x6adaff00
mov dword [esp + 0x20], esi
jmp 0x6adaff7f
mov edx, ebp
call fcn.6adad760
test eax, eax
jne 0x6adb0017
mov eax, dword [ebx + 0x30]
and byte [eax + 0x29], 0xfd
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp], esi
mov ecx, edx
mov edx, eax
lea eax, [esp + 0xb8]
mov dword [esp + 4], edi
call fcn.6adaecb0
test eax, eax
jne 0x6adb0017
mov eax, dword [ebx + 0x60]
lea ecx, [esp + 0x70]
lea ebx, [eax - 0x60]
cmp ecx, eax
je 0x6adaff8e
mov eax, dword [ebx + 0x30]
test byte [eax + 0x29], 2
jne 0x6adaff20
xor esi, esi
xor edi, edi
jmp 0x6adaff3c
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, ebx
or edx, ecx
je 0x6adafe2d
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x138]
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
and edi, 4
jne 0x6adb00e4
lea eax, [esp + 0xa0]
mov dword [esp + 0xc], 7
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x60
mov dword [esp], esi
mov dword [esp + 0x78], 0x6adaee70
mov dword [esp + 0x7c], 0x6adaf6b0
mov dword [esp + 0x80], 0x6adaec10
call fcn.6ada5370
test eax, eax
je 0x6adb011a
mov dword [esp + 0x3c], eax
jmp 0x6adafe2d
mov dword [esp], esi
call fcn.6ada81e0
test eax, eax
jne 0x6ae10467
mov eax, dword [esi]
mov dword [esp + 0x54], eax
lea edx, [eax - 0x60]
jmp 0x6adafb45
sub eax, 0x60
jmp 0x6adb0060
mov edx, dword [eax + 0x34]
mov dword [edx + 0x70], 0
or byte [eax + 0x2d], 2
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp esi, edx
je 0x6adb00b7
movzx edx, byte [eax + 0x2c]
and edx, 0xf
sub edx, 2
and edx, 0xfd
je 0x6adb0048
and byte [eax + 0x2d], 0xfd
jmp 0x6adb0056
mov esi, ecx
test ecx, ecx
je 0x6adb00aa
mov ebx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x10]
add ecx, dword [esi + 8]
adc ebx, dword [esi + 0xc]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov esi, dword [ebx + 0xc]
cmp dword [ebx + 8], ecx
sbb esi, dword [esp + 0x34]
jb 0x6ae10481
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x50], ecx
jmp 0x6adafa98
mov edx, dword [esi]
lea eax, [edx - 0x60]
cmp esi, edx
je 0x6adaf961
lea esi, [esi]
test byte [eax + 0x2d], 2
je 0x6adb00d5
mov edx, dword [eax + 0x34]
add dword [edx + 0x70], 1
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp esi, edx
jne 0x6adb00c8
jmp 0x6adaf961
lea eax, [esp + 0x140]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0xa0]
call fcn.6adad9d0
test eax, eax
je 0x6adaffc6
jmp 0x6adb0017
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adb019b
mov edx, dword [esp + 0x134]
test edx, edx
je 0x6adb0141
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [eax + 0x14]
mov eax, dword [esp + 0x12c]
lea ebp, [esp + 0x88]
lea esi, [esp + 0x6c]
lea ebx, [esp + 0x68]
jmp 0x6adb0185
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov dword [esp], eax
lea eax, [esp + 0xa0]
call fcn.6adaf060
test eax, eax
jne 0x6adb0017
mov eax, dword [esp + 0x12c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [eax + 0x18]
test al, al
jne 0x6adb0158
test edi, edi
je 0x6adafe2d
lea edx, [esp + 0x88]
lea eax, [esp + 0xa0]
call fcn.6adadba0
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x6adafe2d
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x140]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x9c]
lea eax, [edx - 0x60]
mov dword [esp + 0x28], edi
lea edi, [esp + 0x140]
cmp edi, edx
je 0x6adb03c5
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x90]
xor ebx, ebx
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x8c]
and ecx, 0xffffff
mov dword [esp + 0x30], ecx
xor ecx, ecx
mov esi, dword [eax + 8]
mov edx, dword [eax + 0x6c]
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ebx
mov dword [eax + 0x68], esi
mov esi, dword [eax + 0xc]
and edx, 0xff000000
mov dword [eax + 0x78], 0
and esi, 0xffffff
mov dword [eax + 0x7c], 0
or edx, esi
mov dword [eax + 0x48], edi
mov dword [eax + 0x6c], edx
movzx edx, byte [eax + 0x2c]
mov esi, dword [esp + 0x38]
mov dword [eax + 0x4c], ebp
and edx, 0x10
mov dword [eax + 0x50], esi
mov esi, dword [esp + 0x30]
cmp dl, 1
sbb edx, edx
mov dword [eax + 0x54], esi
mov esi, dword [esp + 0x20]
and edx, 0xfffffffe
add edx, 0x12
add ecx, dword [eax + 8]
adc ebx, dword [eax + 0xc]
mov dword [eax + 0x58], esi
mov esi, dword [esp + 0x28]
mov byte [eax + 0x6f], dl
mov edx, dword [eax + 0x60]
mov dword [eax + 0x5c], esi
lea esi, [esp + 0x140]
lea eax, [edx - 0x60]
cmp esi, edx
jne 0x6adb021f
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
xor eax, ecx
xor edx, ebx
or edx, eax
je 0x6adafe2d
mov dword [esp + 8], 0x674
mov dword [esp + 4], str.src_write.c
mov dword [esp], str.offset_in_res__reshdr.uncompressed_size
call dword [0x6ae132b8]
jmp 0x6adafe2d
mov eax, dword [ebx + 0x28]
shr eax, 0xa
cmp dword [esp + 0x190], eax
jne 0x6adafc30
mov eax, dword [ebx + 0x2c]
cmp dword [esp + 0x194], eax
jne 0x6adafc30
jmp 0x6adafd30
lea eax, [esp + 0x12c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x198]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov dword [esp], eax
call fcn.6ad84c80
test eax, eax
jle 0x6adafdad
mov dword [esp], eax
call sym.libwim_15.dll_wimlib_get_error_string
mov dword [esp], str.Couldnt_create_parallel_chunk_compressor:__ls._n__________Falling_back_to_single_threaded_compression.
mov dword [esp + 4], eax
call fcn.6ae0f249
jmp 0x6adafdad
xor eax, eax
xor edi, edi
xor ebp, ebp
xor ecx, ecx
xor ebx, ebx
jmp 0x6adafabc
lea eax, [esp + 0x12c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov dword [esp], eax
call fcn.6ad85310
test eax, eax
jne 0x6adb0017
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x1a4], eax
jmp 0x6adafeb8
xor ecx, ecx
xor ebx, ebx
jmp 0x6adb029e
mov dword [esp], str.Failed_to_sort_blobs_for_solid_compression._Continuing_anyways.
call fcn.6ae0f249
mov eax, dword [esi]
mov dword [esp + 0x54], eax
lea edx, [eax - 0x60]
jmp 0x6adafb45
mov dword [esp], str.WIM_file_contains_overlapping_resources___Compaction_is_not_possible.
call fcn.6ae0f249
mov dword [esp + 0x3c], 0x38
jmp 0x6adaf9d9