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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x14], 0
push 0x4c
lea eax, [esp + 0x34]
mov dword [esp + 0x14], ebx
push ebx
xor esi, esi
mov dword [esp + 0x30], 1
push eax
mov edi, edx
mov dword [esp + 0x24], esi
mov ebp, ecx
mov dword [esp + 0x38], 1
call fcn.101e5b40
add esp, 0xc
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov eax, 0x1029182d
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x1002a0e8
push str.repo
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
test edi, edi
jne 0x1002a110
push str.target
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x88]
test eax, eax
je 0x1002a14e
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x28], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x38], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esp + 0x48], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [esp + 0x58], xmm0
movups xmm0, xmmword [eax + 0x40]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x78], eax
movups xmmword [esp + 0x68], xmm0
cmp dword [edi + 0x20], ebp
je 0x1002a172
push str.Cannot_perform_reset
push str._s___The_given_target_does_not_belong_to_this_repository.
push 0xb
call fcn.10028e40
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x84]
cmp ecx, 1
je 0x1002a1b1
test byte [ebp + 0x60], 1
je 0x1002a1b1
cmp ecx, 2
mov edx, str.reset_hard
mov eax, str.reset_mixed
cmovne eax, edx
push eax
push str.cannot__s._This_operation_is_not_allowed_against_bare_repositories.
push 6
call fcn.10028e40
add esp, 0xc
mov eax, 0xfffffff8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push 1
lea eax, [esp + 0x18]
push edi
push eax
call sym.user32.dll_git_object_peel
mov edi, eax
add esp, 0xc
test edi, edi
js 0x1002a288
mov edx, ebp
lea ecx, [esp + 0x18]
call fcn.10008c10
mov esi, dword [esp + 0x18]
test eax, eax
jns 0x1002a1e6
or edi, 0xffffffff
jmp 0x1002a288
lock inc dword [esi]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x1002a20f
push str.commit
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x1002a288
push 2
push 0x28
lea eax, [ecx + 0x30]
push eax
push dword [ecx + 0x20]
lea eax, [esp + 0x20]
push eax
call sym.user32.dll_git_object_lookup_prefix
mov edi, eax
add esp, 0x14
test edi, edi
js 0x1002a284
mov ebx, dword [esp + 0x84]
cmp ebx, 1
jne 0x1002a31c
push ebp
call sym.user32.dll_git_repository_state
add esp, 4
cmp eax, ebx
je 0x1002a26b
test esi, esi
jne 0x1002a2f3
push str.index
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
push str.Cannot_perform_reset
push str._s__soft__in_the_middle_of_a_merge
push 0xb
call fcn.10028e40
add esp, 0xc
mov edi, 0xfffffff6
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002a297
mov ecx, eax
call fcn.10054de0
test esi, esi
je 0x1002a2b4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x1002a2b4
cmp dword [esi + 4], 0
jne 0x1002a2b4
mov ecx, esi
call fcn.10042040
test ebx, ebx
je 0x1002a2bf
mov ecx, ebx
call fcn.10054de0
cmp dword [esp + 0x20], 0
jbe 0x1002a2e9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1002a2e9
cmp eax, 0x1029182c
je 0x1002a2e9
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x1021f564]
call esi
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
xor ecx, ecx
cmp dword [esi + 0x50], ecx
je 0x1002a31c
mov edx, dword [esi + 0x4c]
nop dword [eax]
mov eax, dword [edx]
mov edi, 0x3000
test word [eax + 0x3c], di
mov edi, dword [esi + 0x50]
ja 0x1002a26b
inc ecx
add edx, 4
cmp ecx, edi
jb 0x1002a300
push dword [esp + 0x80]
lea eax, [esp + 0x20]
push str.reset:_moving_to__s
push eax
call fcn.1002ae20
add esp, 0xc
test eax, eax
js 0x1002a2eb
cmp ebx, 3
mov ebx, dword [esp + 0x10]
jne 0x1002a363
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 2
push eax
push ebx
push ebp
call sym.user32.dll_git_checkout_tree
mov edi, eax
add esp, 0xc
test edi, edi
js 0x1002a288
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1002a388
push 0x1025c4a0
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
xor ecx, ecx
jmp 0x1002a38a
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, str.HEAD
push eax
push 0
push ecx
mov ecx, ebp
call fcn.10013a70
mov edi, eax
add esp, 0xc
test edi, edi
js 0x1002a288
cmp dword [esp + 0x84], 1
jle 0x1002a288
push ebx
push esi
call sym.user32.dll_git_index_read_tree
mov edi, eax
add esp, 8
test edi, edi
js 0x1002a288
push esi
call sym.user32.dll_git_index_write
mov edi, eax
add esp, 4
test edi, edi
js 0x1002a288
push 9
mov edx, 0x102860d0
mov ecx, ebp
call fcn.10010170
mov edi, eax
add esp, 4
test edi, edi
jns 0x1002a288
push str.Cannot_perform_reset
push str._s___failed_to_clean_up_merge_data
push 0xa
call fcn.10028e40
add esp, 0xc
jmp 0x1002a288