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

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x17c
mov dword [esp + 0x20], eax
mov eax, ecx
and eax, 6
mov dword [esp + 0x34], ecx
cmp eax, 6
je 0x6adb37a0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
lea ebp, [eax - 0x60]
cmp ecx, eax
je 0x6adb37ce
mov ebx, dword [0x6add9074]
mov dword [esp + 0x28], esi
mov edi, ecx
mov esi, ebp
mov ebp, ebx
jmp 0x6adb321a
mov eax, dword [esi + 0xc]
or eax, dword [esi + 8]
je 0x6adb3241
mov edx, dword [esi + 0x60]
lea esi, [edx - 0x60]
cmp edi, edx
je 0x6adb3264
test byte [esi + 0x2d], 1
jne 0x6adb3208
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 [esi + 0xc]
or eax, dword [esi + 8]
jne 0x6adb3210
mov dword [esp + 8], 0x540
mov dword [esp + 4], str.src_write.c
mov dword [esp], str.blob__size___0
call ebp
mov edx, dword [esi + 0x60]
lea esi, [edx - 0x60]
cmp edi, edx
jne 0x6adb321a
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov eax, dword [ebx]
cmp ebx, eax
je 0x6adb37ce
test byte [esp + 0x34], 8
jne 0x6adb39b0
lea edx, [esp + 0xb4]
xor eax, eax
mov ecx, 0x2f
mov dword [esp + 0xa0], esi
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 4], 0x60
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 + 0x34]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.6ad82b60
mov dword [esp + 0x3c], eax
test eax, eax
je 0x6adb3310
mov eax, dword [esp + 0x3c]
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
lea edx, [eax - 0x60]
mov esi, eax
cmp ebx, eax
je 0x6adb3cb0
mov dword [esp + 0x48], 0
mov eax, edx
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x40], 0
xor ebp, ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], esi
jmp 0x6adb336c
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp dword [esp + 0x20], edx
je 0x6adb33c4
movzx edx, byte [eax + 0x2c]
add dword [esp + 0x28], 1
adc dword [esp + 0x2c], 0
add edi, dword [eax + 8]
adc ebp, dword [eax + 0xc]
and edx, 0xf
cmp dl, 1
jne 0x6adb3360
mov ebx, dword [eax + 0x30]
mov edx, dword [ebx]
mov dword [esp + 0x38], ebx
cmp edx, ecx
je 0x6adb339f
add dword [esp + 0x40], 1
adc dword [esp + 0x44], 0
test byte [edx + 0x180], 4
je 0x6adb33b6
mov ebx, dword [esp + 0x48]
cmp dword [esp + 0x38], ebx
jne 0x6adb37e5
mov ecx, edx
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp dword [esp + 0x20], edx
jne 0x6adb336c
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0xa8]
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 + 0x34], 0x10
jne 0x6adb3990
mov eax, dword [esp + 0x1a4]
mov ecx, dword [esp + 0x20]
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 ecx, esi
je 0x6adb3824
lea esi, [esi]
movzx eax, byte [edx + 0x2c]
and eax, 0xf
cmp al, 1
jne 0x6adb34aa
mov eax, dword [edx + 0x30]
and byte [eax + 0x29], 0xfd
mov eax, dword [edx + 0x60]
lea edx, [eax - 0x60]
cmp ecx, eax
jne 0x6adb3498
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
mov ebx, dword [eax]
lea edi, [eax - 0x60]
mov ecx, eax
sub ebx, 0x60
cmp esi, eax
je 0x6adb3824
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
and eax, 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], eax
lea esi, [esi]
nop
mov ebp, dword [esp + 0x38]
test ebp, ebp
jne 0x6adb3550
movzx eax, byte [edi + 0x2c]
and eax, 0xf
cmp al, 1
jne 0x6adb3550
mov ebx, dword [edi + 0x30]
mov eax, dword [ebx]
mov dword [esp + 0x40], ebx
test byte [eax + 0x180], 4
jne 0x6adb3670
mov esi, dword [esp + 0x190]
test esi, esi
je 0x6adb3550
movzx eax, byte [ebx + 0x28]
mov byte [esp + 0x50], al
test al, 0x14
je 0x6adb3550
movzx edx, byte [ebx + 0x29]
mov ebx, dword [esp + 0x34]
mov esi, ebx
mov ebp, edx
and edx, 1
shr esi, 1
mov eax, esi
and eax, 1
cmp dl, al
je 0x6adb3580
lea esi, [esi]
mov esi, dword [edi + 8]
mov edi, dword [edi + 0xc]
add dword [esp + 0x48], esi
adc dword [esp + 0x4c], edi
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x60]
lea ecx, [edi + 0x60]
sub eax, 0x60
cmp dword [esp + 0x20], ecx
je 0x6adb36a0
mov dword [esp + 0x28], eax
jmp 0x6adb34f0
movzx edx, byte [esp + 0x50]
shr ebx, 2
mov eax, ebx
shr dl, 4
and eax, 1
and edx, 1
cmp dl, al
jne 0x6adb3550
test byte [esp + 0x50], 4
jne 0x6adb3c12
mov eax, ebp
test al, 2
jne 0x6adb3670
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x20]
lea ebx, [esi + 0x20]
mov ebp, ebx
lea eax, [edx - 0x40]
cmp ebx, edx
je 0x6adb3550
mov dword [esp + 0x40], edi
xor ebx, ebx
mov edi, ebp
mov dword [esp + 0x50], ecx
xor ecx, ecx
lea esi, [esi]
test byte [eax + 0x2d], 1
je 0x6adb35dc
add ecx, dword [eax + 8]
adc ebx, dword [eax + 0xc]
mov edx, dword [eax + 0x40]
lea eax, [edx - 0x40]
cmp edi, edx
jne 0x6adb35d0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x40], esi
shld edx, eax, 1
add eax, eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x50], eax
add eax, edx
mov ebx, dword [esp + 0x50]
mov esi, eax
mov eax, 0xaaaaaaab
mov dword [esp + 0x54], edx
adc esi, 0
mul esi
mov eax, edx
and edx, 0xfffffffe
shr eax, 1
add edx, eax
sub esi, edx
xor edx, edx
mov eax, esi
mov esi, dword [esp + 0x54]
sub ebx, eax
sbb esi, edx
mov dword [esp + 0x50], ebx
imul eax, dword [esp + 0x50], 0xaaaaaaaa
imul edx, esi, 0xaaaaaaab
mov dword [esp + 0x54], esi
mov ebx, dword [esp + 0x58]
lea esi, [edx + eax]
mov eax, 0xaaaaaaab
mul dword [esp + 0x50]
add edx, esi
mov esi, dword [esp + 0x5c]
cmp eax, ebx
mov eax, edx
sbb eax, esi
jae 0x6adb3550
nop
mov eax, dword [esp + 0x40]
lea ebx, [esp + 0x70]
or byte [eax + 0x29], 2
mov eax, dword [edi + 0x60]
mov edx, dword [edi + 0x64]
mov dword [edx], eax
mov dword [eax + 4], edx
mov eax, dword [esp + 0x74]
mov dword [edi + 0x60], ebx
mov dword [esp + 0x74], ecx
mov dword [edi + 0x64], eax
mov dword [eax], ecx
jmp 0x6adb355e
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov eax, ebx
or eax, esi
je 0x6adb3834
mov edx, dword [esp + 0x190]
test edx, edx
je 0x6adb3834
mov ecx, 0x1e8480
cmp dword [esp + 0x194], ecx
cmovae ecx, dword [esp + 0x194]
xor edx, edx
mov eax, edx
cmp ecx, ebx
sbb eax, esi
jb 0x6adb3c48
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adb3ccb
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 0x6adb3850
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 0x6adb3850
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.6adaeef0
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adb32f9
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 [0x6add9074]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
lea ebp, [eax - 0x60]
cmp ecx, eax
jne 0x6adb31f3
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, ebx
test ebx, ebx
je 0x6adb3815
mov ecx, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
add ecx, dword [esi + 8]
adc ebx, dword [esi + 0xc]
mov dword [esp + 0x4c], ebx
mov ebx, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 8], ebx
mov ebx, dword [ecx + 0xc]
sbb ebx, dword [esp + 0x4c]
jb 0x6add67ba
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
mov ecx, edx
jmp 0x6adb33b8
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x12c]
mov edx, 1
test eax, eax
je 0x6adb3711
jmp 0x6adb370e
mov edx, dword [esp + 0x70]
lea edi, [esp + 0x70]
mov ecx, dword [esp + 0xa0]
lea ebx, [edx - 0x60]
mov eax, ebx
cmp edi, edx
je 0x6adb38fe
lea esi, [esi]
mov edx, dword [eax + 0x30]
lea edi, [esp + 0x70]
or byte [edx + 0x29], 2
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp edi, edx
jne 0x6adb3870
mov edi, ecx
mov esi, ebx
jmp 0x6adb38ef
mov edx, edi
call fcn.6adb1060
test eax, eax
jne 0x6adb3985
mov eax, dword [esi + 0x30]
and byte [eax + 0x29], 0xfd
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov ecx, edx
mov edx, eax
lea eax, [esp + 0xb8]
mov dword [esp + 4], ebx
call fcn.6adb25a0
test eax, eax
jne 0x6adb3985
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x70]
lea esi, [eax - 0x60]
cmp ecx, eax
je 0x6adb38fe
mov eax, dword [esi + 0x30]
test byte [eax + 0x29], 2
jne 0x6adb3890
xor ecx, ecx
xor ebx, ebx
jmp 0x6adb38ac
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
or edi, eax
je 0x6adb3763
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x138]
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
and edi, 4
jne 0x6adb3a2c
lea eax, [esp + 0xa0]
mov dword [esp + 0xc], 7
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0x60
mov dword [esp], eax
mov dword [esp + 0x78], 0x6adb27b0
mov dword [esp + 0x7c], 0x6adb2fc0
mov dword [esp + 0x80], 0x6adb2510
call fcn.6ada63e0
test eax, eax
je 0x6adb3a62
mov dword [esp + 0x3c], eax
jmp 0x6adb3763
mov edi, dword [esp + 0x20]
mov dword [esp], edi
call fcn.6adab630
test eax, eax
jne 0x6add679e
mov eax, dword [edi]
lea edx, [eax - 0x60]
mov esi, eax
jmp 0x6adb3461
mov ecx, dword [esp + 0x20]
sub eax, 0x60
lea esi, [esi]
nop
movzx edx, byte [eax + 0x2c]
xor ebx, ebx
and edx, 0xf
sub edx, 2
and edx, 0xfd
jne 0x6adb39e3
mov edx, dword [eax + 0x34]
mov ebx, 1
mov dword [edx + 0x70], 0
movzx edx, byte [eax + 0x2d]
add ebx, ebx
and edx, 0xfffffffd
or edx, ebx
mov byte [eax + 0x2d], dl
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp ecx, edx
jne 0x6adb39c0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
lea eax, [edx - 0x60]
cmp ecx, edx
je 0x6adb3281
lea esi, [esi]
test byte [eax + 0x2d], 2
je 0x6adb3a1d
mov edx, dword [eax + 0x34]
add dword [edx + 0x70], 1
mov edx, dword [eax + 0x60]
lea eax, [edx - 0x60]
cmp ecx, edx
jne 0x6adb3a10
jmp 0x6adb3281
lea eax, [esp + 0x140]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0xa0]
call fcn.6adb12c0
test eax, eax
je 0x6adb3930
jmp 0x6adb3985
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x6adb3ae3
mov edx, dword [esp + 0x134]
test edx, edx
je 0x6adb3a89
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 0x6adb3acd
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.6adb2990
test eax, eax
jne 0x6adb3985
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 0x6adb3aa0
test edi, edi
je 0x6adb3763
lea edx, [esp + 0x88]
lea eax, [esp + 0xa0]
call fcn.6adb1490
test eax, eax
jne 0x6adb3985
mov edx, dword [esp + 0x140]
lea edi, [esp + 0x140]
mov ecx, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
lea eax, [edx - 0x60]
cmp edi, edx
je 0x6adb3d19
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
xor esi, esi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x24], ebp
mov ebp, eax
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x8c]
and edi, 0xffffff
mov dword [esp + 0x34], edi
xor edi, edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x6c]
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x74], edi
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0xc]
and edx, 0xff000000
mov dword [ebp + 0x78], 0
and eax, 0xffffff
mov dword [ebp + 0x7c], 0
or eax, edx
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x6c], eax
movzx eax, byte [ebp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [ebp + 0x5c], ebx
shr al, 4
and eax, 1
mov dword [ebp + 0x4c], edx
lea edx, [esp + 0x140]
add eax, eax
or eax, 0x10
add esi, dword [ebp + 8]
adc edi, dword [ebp + 0xc]
mov byte [ebp + 0x6f], al
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x50], eax
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x60]
lea ebp, [eax - 0x60]
cmp edx, eax
jne 0x6adb3b65
mov eax, esi
mov edx, edi
xor eax, ecx
xor edx, ebx
or eax, edx
je 0x6adb3763
mov dword [esp + 8], 0x672
mov dword [esp + 4], str.src_write.c
mov dword [esp], str.offset_in_res__reshdr.uncompressed_size
call dword [0x6add9074]
jmp 0x6adb3763
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x28]
shr eax, 0xa
cmp dword [esp + 0x190], eax
jne 0x6adb3550
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x2c]
cmp dword [esp + 0x194], eax
jne 0x6adb3550
jmp 0x6adb3670
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.6ad84dc0
test eax, eax
jle 0x6adb36e3
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.6add55fc
jmp 0x6adb36e3
mov dword [esp + 0x28], 0
xor eax, eax
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x2c], 0
jmp 0x6adb33d0
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.6ad85430
test eax, eax
jne 0x6adb3985
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x1a4], eax
jmp 0x6adb3834
xor esi, esi
xor edi, edi
jmp 0x6adb3be0
mov dword [esp], str.Failed_to_sort_blobs_for_solid_compression._Continuing_anyways.
call fcn.6add55fc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
lea edx, [eax - 0x60]
mov esi, eax
jmp 0x6adb3461
mov dword [esp], str.WIM_file_contains_overlapping_resources___Compaction_is_not_possible.
call fcn.6add55fc
mov dword [esp + 0x3c], 0x38
jmp 0x6adb32f9