Function at 0x6adaf630
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 0x6adafbd0
mov eax, dword [esi]
lea ebp, [eax - 0x60]
cmp esi, eax
je 0x6adafbfa
mov ebx, dword [0x6ae0f298]
mov edi, ebx
jmp 0x6adaf67a
mov eax, dword [ebp + 0x60]
lea ebp, [eax - 0x60]
cmp esi, eax
je 0x6adaf6c4
cmp byte [ebp + 0x2c], 0
js 0x6adaf699
mov dword [esp + 8], 0x53a
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 0x6adaf670
mov dword [esp + 8], 0x53b
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 0x6adaf67a
mov eax, dword [esi]
cmp esi, eax
je 0x6adafbfa
test byte [esp + 0x38], 8
jne 0x6adaff80
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.6ad82af0
mov dword [esp + 0x3c], eax
test eax, eax
je 0x6adaf760
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 0x6adb0050
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 0x6adaf7bc
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp dword [esp + 0x28], edx
je 0x6adaf818
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 0x6adaf7b0
mov ebx, dword [eax + 0x30]
mov dword [esp + 0x40], ebx
mov edx, dword [ebx]
cmp edx, dword [esp + 0x30]
je 0x6adaf7f1
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
test byte [edx + 0x178], 4
je 0x6adaf808
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x40], ecx
jne 0x6adaffb8
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp dword [esp + 0x28], edx
jne 0x6adaf7bc
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 0x6adafce0
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 0x6adafc11
lea esi, [esi]
nop
movzx eax, byte [edx + 0x2c]
and eax, 0xf
cmp al, 1
jne 0x6adaf902
mov eax, dword [edx + 0x30]
and byte [eax + 0x29], 0xfd
mov eax, dword [edx + 0x60]
lea edx, [eax - 0x60]
cmp esi, eax
jne 0x6adaf8f0
mov eax, dword [esi]
mov edi, dword [eax]
lea ebp, [eax - 0x60]
mov ecx, eax
sub edi, 0x60
cmp esi, eax
je 0x6adafc11
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 0x6adaf9a0
movzx eax, byte [ebp + 0x2c]
and eax, 0xf
cmp al, 1
jne 0x6adaf9a0
mov ebx, dword [ebp + 0x30]
mov eax, dword [ebx]
test byte [eax + 0x178], 4
jne 0x6adafaa0
mov eax, dword [esp + 0x190]
test eax, eax
je 0x6adaf9a0
movzx eax, byte [ebx + 0x28]
test al, 0x14
je 0x6adaf9a0
movzx edx, byte [ebx + 0x29]
mov byte [esp + 0x40], dl
and edx, 1
cmp dl, byte [esp + 0x30]
je 0x6adaf9c8
lea esi, [esi]
mov eax, dword [edi + 0x60]
mov ecx, dword [ebp + 8]
add dword [esp + 0x28], ecx
lea ecx, [edi + 0x60]
mov ebx, dword [ebp + 0xc]
mov ebp, edi
adc dword [esp + 0x2c], ebx
sub eax, 0x60
cmp esi, ecx
je 0x6adafad6
mov edi, eax
jmp 0x6adaf950
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 0x6adaf9a0
test al, 4
jne 0x6adb0024
test byte [esp + 0x40], 2
jne 0x6adafaa0
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 0x6adaf9a0
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]
cmp byte [eax + 0x2c], 0
jns 0x6adafa44
add ecx, dword [eax + 8]
adc ebx, dword [eax + 0xc]
mov edx, dword [eax + 0x40]
lea eax, [edx - 0x40]
cmp edi, edx
jne 0x6adafa38
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.6adf5af0
cmp eax, dword [esp + 0x40]
sbb edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
jae 0x6adaf9a0
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, edi
mov dword [esp + 0x74], ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x60]
lea ecx, [edi + 0x60]
sub eax, 0x60
cmp esi, ecx
jne 0x6adaf9c1
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, edi
or eax, ebp
je 0x6adafc28
mov edx, dword [esp + 0x190]
test edx, edx
je 0x6adafc28
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 0x6adb005f
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adb00c8
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 0x6adafc48
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 0x6adafc48
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.6adab410
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adaf751
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], 0x5ca
mov dword [esp + 4], str.src_write.c
mov dword [esp], str._write_resource_flags___0x00000004__0x00000002______0x00000004__0x00000002_
call dword [0x6ae0f298]
mov eax, dword [esi]
lea ebp, [eax - 0x60]
cmp esi, eax
jne 0x6adaf65f
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 0x6adafb4b
jmp 0x6adafb48
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x70]
mov edi, dword [esp + 0xa0]
lea ebx, [edx - 0x60]
mov eax, ebx
cmp ecx, edx
je 0x6adafcfe
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 0x6adafc68
jmp 0x6adafc8e
mov eax, dword [ebx + 0x60]
lea ecx, [esp + 0x70]
lea ebx, [eax - 0x60]
cmp ecx, eax
je 0x6adafcfe
mov eax, dword [ebx + 0x30]
test byte [eax + 0x29], 2
je 0x6adafca9
mov edx, edi
call fcn.6adad520
test eax, eax
jne 0x6adafcd2
mov eax, dword [ebx + 0x30]
and byte [eax + 0x29], 0xfd
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 4], 0
mov dword [esp], 1
mov ecx, edx
mov edx, eax
lea eax, [esp + 0xb8]
call fcn.6adaea60
test eax, eax
je 0x6adafc80
mov dword [esp + 0x3c], eax
jmp 0x6adafb9d
mov dword [esp], esi
call fcn.6ada7f60
test eax, eax
jne 0x6ae0c617
mov eax, dword [esi]
mov dword [esp + 0x54], eax
lea edx, [eax - 0x60]
jmp 0x6adaf8b5
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, ebx
or edx, ecx
je 0x6adafb9d
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x138]
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
and edi, 4
je 0x6adafd5f
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.6adad790
test eax, eax
jne 0x6adafcd2
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], 0x6adaec20
mov dword [esp + 0x7c], 0x6adaf430
mov dword [esp + 0x80], 0x6adae9c0
call fcn.6ada5150
test eax, eax
jne 0x6adafcd2
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adafe33
mov edx, dword [esp + 0x134]
test edx, edx
je 0x6adafdd7
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 0x6adafe1d
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.6adaee00
test eax, eax
jne 0x6adafcd2
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 0x6adafdf0
test edi, edi
je 0x6adafb9d
lea edx, [esp + 0x88]
lea eax, [esp + 0xa0]
call fcn.6adad960
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x6adafb9d
mov edx, dword [esp + 0x140]
lea ebx, [esp + 0x140]
mov ebp, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
lea eax, [edx - 0x60]
cmp ebx, edx
je 0x6adb0116
mov ebx, dword [esp + 0x90]
mov esi, dword [esp + 0x94]
mov dword [esp + 0x20], edi
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x8c]
and ebx, 0xffffff
mov dword [esp + 0x30], ebx
xor ebx, ebx
mov edx, dword [eax + 0x6c]
mov esi, dword [eax + 0xc]
mov dword [eax + 0x70], ecx
mov edi, dword [eax + 8]
mov dword [eax + 0x74], ebx
and esi, 0xffffff
and edx, 0xff000000
mov dword [eax + 0x58], ebp
or edx, esi
mov dword [eax + 0x68], edi
mov dword [eax + 0x6c], edx
movzx edx, byte [eax + 0x2c]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [eax + 0x78], 0
and edx, 0x10
mov dword [eax + 0x7c], 0
mov dword [eax + 0x4c], edi
mov edi, dword [esp + 0x38]
cmp dl, 1
sbb edx, edx
mov dword [eax + 0x48], esi
mov dword [eax + 0x50], edi
mov edi, dword [esp + 0x30]
and edx, 0xfffffffe
add edx, 0x12
add ecx, dword [eax + 8]
adc ebx, dword [eax + 0xc]
mov dword [eax + 0x54], edi
mov edi, dword [esp + 0x20]
mov byte [eax + 0x6f], dl
mov edx, dword [eax + 0x60]
mov dword [eax + 0x5c], edi
lea edi, [esp + 0x140]
lea eax, [edx - 0x60]
cmp edi, edx
jne 0x6adafebb
mov edi, dword [esp + 0x20]
xor edi, ebx
mov eax, ebp
xor eax, ecx
mov edx, edi
or edx, eax
je 0x6adafb9d
mov dword [esp + 8], 0x66f
mov dword [esp + 4], str.src_write.c
mov dword [esp], str.offset_in_res__reshdr.uncompressed_size
call dword [0x6ae0f298]
jmp 0x6adafb9d
sub eax, 0x60
jmp 0x6adaffa0
mov edx, dword [eax + 0x34]
mov dword [edx + 0x70], 0
or byte [eax + 0x2d], 1
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp esi, edx
je 0x6adafff7
movzx edx, byte [eax + 0x2c]
and edx, 0xf
sub edx, 2
and edx, 0xfd
je 0x6adaff88
and byte [eax + 0x2d], 0xfe
jmp 0x6adaff96
mov esi, ecx
test ecx, ecx
je 0x6adaffea
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 0x6ae0c631
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x50], ebx
jmp 0x6adaf808
mov edx, dword [esi]
lea eax, [edx - 0x60]
cmp esi, edx
je 0x6adaf6d9
lea esi, [esi]
test byte [eax + 0x2d], 1
je 0x6adb0015
mov edx, dword [eax + 0x34]
add dword [edx + 0x70], 1
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp esi, edx
jne 0x6adb0008
jmp 0x6adaf6d9
mov eax, dword [ebx + 0x28]
shr eax, 0xa
cmp dword [esp + 0x190], eax
jne 0x6adaf9a0
mov eax, dword [ebx + 0x2c]
cmp dword [esp + 0x194], eax
jne 0x6adaf9a0
jmp 0x6adafaa0
xor eax, eax
xor edi, edi
xor ebp, ebp
xor ecx, ecx
xor ebx, ebx
jmp 0x6adaf82c
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.6ad84c90
test eax, eax
jle 0x6adafb1d
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.6ae0b4c9
jmp 0x6adafb1d
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.6ad85320
test eax, eax
jne 0x6adafcd2
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x1a4], eax
jmp 0x6adafc28
xor ecx, ecx
xor ebx, ebx
jmp 0x6adaff46
mov dword [esp], str.Failed_to_sort_blobs_for_solid_compression._Continuing_anyways.
call fcn.6ae0b4c9
mov eax, dword [esi]
mov dword [esp + 0x54], eax
lea edx, [eax - 0x60]
jmp 0x6adaf8b5
mov dword [esp], str.WIM_file_contains_overlapping_resources___Compaction_is_not_possible.
call fcn.6ae0b4c9
mov dword [esp + 0x3c], 0x38
jmp 0x6adaf751