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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
and dword [esi + 0x2fc], 0
mov ecx, esi
call fcn.1003ad5b
cmp eax, 0xfffffffe
je 0x10039b77
cmp eax, 0xffffffff
je 0x10039b6a
test eax, eax
je 0x10039b65
cmp eax, 1
jne 0x1003975f
test byte [esi + 0x260], 0x20
lea edi, [esi + 0x294]
jne 0x100397ad
push eax
mov edx, edi
mov ecx, esi
call fcn.1003b2ba
test eax, eax
je 0x10039b52
or dword [esi + 0x260], 0x20
test edi, edi
je 0x10039b52
push dword [esi + 0x27c]
mov edi, dword [ebp + 8]
push edi
call sym.archiveint.dll__archive_entry_copy_pathname_w_8
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x1003980f
push edi
push eax
call sym.archiveint.dll__archive_match_path_excluded_8
mov dword [ebp - 0x14], eax
test eax, eax
jns 0x10039809
mov esi, dword [ebx + 0x9c]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
push esi
mov edi, eax
call sym.archiveint.dll__archive_error_string_4
push eax
push 0x100134ec
push dword [edi]
push ebx
call sym.archiveint.dll_archive_set_error
mov eax, dword [ebp - 0x14]
add esp, 0x10
jmp 0x10039b9b
jne 0x100399eb
mov al, byte [esi + 0x329]
cmp al, 0x48
je 0x10039842
cmp al, 0x4c
je 0x10039849
lea eax, [ebx + 0x64]
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x65]
mov dword [ebp - 0x10], eax
xor edx, edx
mov ecx, esi
call fcn.1003b3a5
test eax, eax
je 0x100398cc
mov dword [ebp - 0x14], edx
jmp 0x100398d4
mov byte [esi + 0x329], 0x50
mov ecx, esi
call fcn.1003b38c
mov dword [ebp - 0x14], eax
lea eax, [ebx + 0x64]
mov dword [ebp - 0xc], eax
mov byte [eax], 0x4c
lea eax, [ebx + 0x65]
mov dword [ebp - 0x10], eax
mov byte [eax], 1
call fcn.1003b356
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x10039829
xor eax, eax
add eax, dword [ecx + 0x30]
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x2c]
push 0
pop edx
adc eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
jmp 0x100398b2
mov edi, dword [ecx + 0x1c]
cmp dword [eax + 0x30], edi
mov edi, dword [ebp + 8]
jne 0x100398b2
cmp dword [eax + 0x34], edx
jne 0x100398b2
mov edi, dword [ebp - 0x10]
cmp dword [eax + 0x38], edi
mov edi, dword [ebp + 8]
jne 0x100398b2
mov edi, dword [ebp - 0xc]
cmp dword [eax + 0x3c], edi
mov edi, dword [ebp + 8]
je 0x100398bb
mov eax, dword [eax + 8]
test eax, eax
jne 0x1003988c
jmp 0x100398e8
lea eax, [ebx + 0x64]
mov dword [ebp - 0xc], eax
lea eax, [ebx + 0x65]
mov dword [ebp - 0x10], eax
jmp 0x1003982b
call fcn.1003b38c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
lea ecx, [esi + 0x294]
mov dword [ebp - 8], ecx
mov byte [eax], 0x50
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
push edx
push dword [ecx + 0x1c]
mov ecx, ebx
call fcn.1003a385
test eax, eax
jne 0x10039b91
mov eax, dword [esi + 0x334]
cmp eax, 0xffffffff
jne 0x10039912
mov eax, dword [esi + 0x338]
mov dword [esi + 0x334], eax
test byte [ebx + 0x78], 8
je 0x10039924
cmp eax, dword [esi + 0x338]
jne 0x10039a46
mov eax, dword [ebp - 0x14]
mov ecx, edi
mov edx, dword [esi + 0x27c]
mov dword [esi + 0x2fc], eax
mov eax, dword [ebp - 8]
push eax
push dword [esi + 0x25c]
call fcn.1003b0c5
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esi + 0x304], eax
mov dword [esi + 0x308], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [esi + 0x30c], eax
mov dword [esi + 0x310], ecx
mov ecx, 0xf000
mov ax, word [edi + 0x2e4]
and ax, cx
mov word [esi + 0x314], ax
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x1003999f
push edi
push eax
call sym.archiveint.dll__archive_match_time_excluded_8
mov dword [ebp - 0x14], eax
test eax, eax
js 0x100397dc
jne 0x100399eb
push dword [edi + 0x74]
push dword [edi + 0x70]
push ebx
call sym.archiveint.dll__archive_read_disk_uname_12
test eax, eax
je 0x100399b6
push eax
push edi
call sym.archiveint.dll__archive_entry_copy_uname_8
push dword [edi + 0x54]
push dword [edi + 0x50]
push ebx
call sym.archiveint.dll__archive_read_disk_gname_12
test eax, eax
je 0x100399cd
push eax
push edi
call sym.archiveint.dll__archive_entry_copy_gname_8
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x10039a09
push edi
push eax
call sym.archiveint.dll__archive_match_owner_excluded_8
mov dword [ebp - 0x14], eax
test eax, eax
js 0x100397dc
je 0x10039a09
mov esi, dword [ebx + 0xa0]
test esi, esi
je 0x10039a46
push edi
push dword [ebx + 0xa4]
mov ecx, esi
push ebx
call dword [0x1011c338]
call esi
jmp 0x10039a46
test byte [ebx + 0x78], 0x40
jne 0x10039a22
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 7
je 0x10039a22
push 0
push eax
push edi
call sym.archiveint.dll__archive_entry_set_fflags_12
mov eax, dword [ebx + 0x94]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10039a4d
push edi
push dword [ebx + 0x98]
mov ecx, eax
push ebx
call dword [0x1011c338]
call dword [ebp - 0x14]
test eax, eax
jne 0x10039a4d
push 0xfffffffffffffff6
jmp 0x10039b9a
push dword [esi + 0x26c]
push edi
call sym.archiveint.dll__archive_entry_copy_sourcepath_w_8
mov ax, word [edi + 0x2e4]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x8000
cmp ax, cx
jne 0x10039b4e
xor eax, eax
cmp dword [edi + 0x6c], eax
jl 0x10039b9b
jg 0x10039a8c
cmp dword [edi + 0x68], eax
jbe 0x10039b9b
cmp dword [esi + 0x500], 0
mov eax, dword [esi + 0x504]
je 0x10039aa7
mov edx, 0x62000000
mov ecx, 0x22000000
jmp 0x10039ab1
mov edx, 0x4a000000
mov ecx, 0xa000000
push 6
test eax, eax
lea edi, [ebp - 0x2c]
cmove edx, ecx
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x18
push eax
push 3
push 7
push 0x80000000
push dword [esi + 0x26c]
mov dword [ebp - 0x24], edx
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_CreateFile2]
mov dword [esi + 0x344], eax
cmp eax, 0xffffffff
jne 0x10039b1f
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1006a813
mov eax, dword [ebx + 0x68]
mov esi, dword [eax + 0x27c]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
push esi
push 0x100134f8
push dword [eax]
push ebx
call sym.archiveint.dll_archive_set_error
add esp, 0x10
push 0xffffffffffffffe7
jmp 0x10039b9a
test byte [ebx + 0x78], 0x80
jne 0x10039b4e
mov edi, dword [ebp + 8]
push edi
call sym.archiveint.dll__archive_entry_hardlink_4
test eax, eax
jne 0x10039b4e
mov eax, dword [ebp - 8]
test dword [eax], 0x200
je 0x10039b4e
push dword [esi + 0x344]
mov edx, edi
mov ecx, ebx
call fcn.1003b875
jmp 0x10039b9b
xor eax, eax
jmp 0x10039b9b
push dword [esi + 0x27c]
push 0x100134d8
push dword [esi + 0x268]
jmp 0x10039b12
xor eax, eax
inc eax
jmp 0x10039b9b
push dword [esi + 0x27c]
push 0x100134b8
jmp 0x10039b5d
push dword [esi + 0x27c]
push 0x10013484
push dword [esi + 0x268]
push ebx
call sym.archiveint.dll_archive_set_error
add esp, 0x10
push 0xffffffffffffffe2
mov dword [ebx + 4], 0x8000
pop eax
pop edi
pop esi
pop ebx
leave
ret 4