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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x60
cmp dword [ebp + 0x1c], 0x1f
ja 0x6ad8db98
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x6ad8db98
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6ad8db98
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x130]
test edi, edi
je 0x6ad8db68
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x130]
test edx, edx
je 0x6ad8db80
cmp dword [ebp + 0xc], 0xffffffff
je 0x6ad8dbb0
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x28]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
mov esi, eax
mov dword [esp + 0x4c], eax
mov ecx, dword [edi + esi*4 - 4]
test ebx, ebx
je 0x6ad8dc00
xor eax, eax
jmp 0x6ad8db37
add eax, 1
cmp eax, ebx
je 0x6ad8db50
cmp dword [edx + eax*4], ecx
jne 0x6ad8db30
mov esi, 0x57
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x54]
add esi, 1
cmp esi, eax
jg 0x6ad8dc00
mov ecx, dword [edi + esi*4 - 4]
jmp 0x6ad8db23
mov edx, dword [eax + 0x28]
mov esi, 0x24
test edx, edx
jne 0x6ad8db41
jmp 0x6ad8dae9
mov eax, dword [eax + 0x28]
mov esi, 0x24
test eax, eax
jne 0x6ad8db41
jmp 0x6ad8dafa
lea esp, [ebp - 0xc]
mov esi, 0x18
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
test byte [ebp + 0x1c], 2
jne 0x6ad8dbc1
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x6add5660
test byte [ebp + 0x1c], 4
jne 0x6ad8dbd2
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x6add5660
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x4c], 1
mov eax, dword [eax + 0x28]
mov ebx, dword [ecx + 0x28]
mov dword [esp + 0x54], eax
test eax, eax
jle 0x6ad8dc00
mov esi, 1
jmp 0x6ad8db17
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.6adb03d0
mov esi, eax
test eax, eax
jne 0x6ad8db41
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.6adb03d0
mov esi, eax
test eax, eax
jne 0x6ad8db41
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6ad8da50
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x138]
mov dword [esp], eax
call fcn.6ad82810
mov eax, dword [ebp + 0x1c]
and eax, 2
mov dword [esp + 0x34], eax
je 0x6ad8df9a
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x4c], ecx
jg 0x6ad8e02d
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 8]
and eax, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
and eax, 8
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
xor edi, edi
test eax, eax
jne 0x6ad8dca5
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x6ad8e016
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x40], 0
test eax, eax
jne 0x6ad8dcc4
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x40], eax
test eax, eax
je 0x6ad8dffd
mov eax, dword [esp + 0x44]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6adafbc0
test eax, eax
jne 0x6ad8df8c
mov edx, dword [esi + 0x140]
mov eax, dword [esi + 0x130]
mov eax, dword [eax + edx*4 - 4]
mov dword [esp + 0x30], eax
mov eax, dword [eax + 0x14]
test eax, eax
je 0x6ad8dec8
mov dword [esp + 0x38], edi
lea ebx, [eax - 0x30]
mov dword [ebp + 8], esi
mov edx, ebx
lea esi, [esi]
nop
mov eax, dword [ebp + 0x10]
mov ebx, dword [edx + 0x20]
mov ecx, dword [eax + 0x138]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x138]
mov dword [esp + 0x50], eax
xor eax, eax
test ebx, ebx
je 0x6ad8deb2
mov dword [esp + 0x58], ecx
mov edi, edx
mov ebx, eax
jmp 0x6ad8dd5b
mov edx, dword [edi + 0x38]
and edx, 0x3fffffff
add dword [eax + 0x24], edx
add dword [eax + 0x28], edx
add ebx, 1
cmp ebx, dword [edi + 0x20]
jae 0x6ad8deb0
imul eax, ebx, 0x1c
mov dword [esp + 0x5c], eax
add eax, dword [edi]
mov dword [esp], eax
call fcn.6ad92160
mov esi, eax
cmp eax, 0x6ade3c80
je 0x6ad8dd4f
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0x6ade3c80
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x6ad8dd4f
mov eax, dword [esp + 0x58]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.6ad827c0
test eax, eax
jne 0x6ad8dd40
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
add eax, dword [edi]
mov dword [esp], eax
call fcn.6ad92130
test eax, eax
je 0x6ad8df70
mov edx, dword [esp + 0x48]
test edx, edx
je 0x6ad8de18
mov dword [esp + 4], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.6ad82640
mov eax, dword [esp + 0x5c]
or byte [eax + 0x2d], 4
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call fcn.6ad82560
mov eax, dword [esp + 0x5c]
jmp 0x6ad8dd40
mov dword [esp], eax
call fcn.6ad82390
test eax, eax
jne 0x6ad8dde3
mov ebx, dword [esp + 0x3c]
mov edi, dword [ebp + 0x10]
mov esi, 0x27
jmp 0x6ad8de4a
mov dword [esp + 4], eax
mov eax, dword [edi + 0x134]
mov dword [esp], eax
call fcn.6adb6120
mov eax, dword [edi + 0x134]
mov dword [esp], eax
call fcn.6adb59b0
cmp ebx, eax
jl 0x6ad8de38
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x28]
cmp ebx, eax
jae 0x6ad8de8e
lea esi, [esi]
mov edx, dword [edi + 0x130]
sub eax, 1
mov dword [edi + 0x28], eax
mov eax, dword [edx + eax*4]
mov dword [esp], eax
call fcn.6adaf840
mov eax, dword [edi + 0x28]
cmp ebx, eax
jb 0x6ad8de70
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x138]
mov dword [esp + 4], 0x6ad8da70
mov dword [esp + 8], eax
mov dword [esp], eax
call fcn.6ad82810
jmp 0x6ad8db41
mov edx, edi
mov edx, dword [edx + 0x30]
test edx, edx
je 0x6ad8dec1
sub edx, 0x30
jmp 0x6ad8dd10
mov edi, dword [esp + 0x38]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x44]
shr eax, 4
and eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x134]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esi + 0x134]
mov dword [esp], eax
call fcn.6adb6040
test eax, eax
jne 0x6ad8df8c
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.6adaf950
test eax, eax
jne 0x6ad8df8c
mov eax, dword [esp + 0x54]
add edi, 1
add dword [ebx], 1
mov dword [esp + 0x44], edi
cmp edi, eax
jle 0x6ad8dc90
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
test byte [eax + 0xc], 0x80
jne 0x6ad8e07d
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
add ecx, 1
test byte [ebp + 0x1c], 1
jne 0x6ad8e049
add eax, 1
cmp eax, ecx
jne 0x6ad8df63
jmp 0x6ad8db41
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x5c], edi
call fcn.6ad92100
mov edx, dword [esp + 0x5c]
test eax, eax
je 0x6ad8deb2
mov ebx, dword [esp + 0x3c]
mov edi, dword [ebp + 0x10]
mov esi, eax
jmp 0x6ad8de4a
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jg 0x6ad8e02d
mov dword [esp + 0x58], esi
mov edi, eax
mov esi, ecx
mov dword [esp + 0x5c], ebx
jmp 0x6ad8dfd6
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym.libwim_15.dll_wimlib_image_name_in_use
test al, al
jne 0x6add5671
add edi, 1
cmp edi, esi
jg 0x6ad8dff0
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x6ad8dfb8
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libwim_15.dll_wimlib_get_image_name
mov ebx, eax
jmp 0x6ad8dfb8
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
jmp 0x6ad8dc69
mov eax, dword [esp + 0x44]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.libwim_15.dll_wimlib_get_image_description
mov dword [esp + 0x40], eax
jmp 0x6ad8dcc4
mov eax, dword [esp + 0x44]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.libwim_15.dll_wimlib_get_image_name
mov edi, eax
jmp 0x6ad8dca5
mov eax, dword [ebp + 8]
test byte [eax + 0xc], 0x80
je 0x6ad8db41
mov eax, dword [ebp + 0x10]
or dword [eax + 0xc], 0x80
jmp 0x6ad8db41
lea edx, [ebx + 1]
sub edx, eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x6ad8e069
mov edi, dword [ebp + 0x10]
lea ebx, [edx + eax]
add eax, 1
mov dword [edi + 0x78], ebx
cmp eax, ecx
jne 0x6ad8e04e
jmp 0x6ad8db41
mov edi, dword [ebp + 8]
cmp dword [edi + 0x78], eax
je 0x6ad8e054
add eax, 1
cmp eax, ecx
jne 0x6ad8e069
jmp 0x6ad8db41
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x54]
or dword [eax + 0xc], 0x80
cmp dword [esp + 0x4c], ecx
jle 0x6ad8df4e
jmp 0x6ad8db41
mov dword [esp], str.Image_name_and_description_must_be_left_NULL_for_multi_image_export
call fcn.6add55ba
jmp 0x6ad8db98
mov edi, ebx
mov dword [esp], str.There_is_already_an_image_named___ls__in_the_destination_WIM
mov ebx, dword [esp + 0x5c]
mov esi, 0xb
mov dword [esp + 4], edi
call fcn.6add55ba
mov edi, dword [ebp + 0x10]
jmp 0x6ad8de4a