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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
xor ebx, ebx
mov eax, 0x1017306d
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push edi
test esi, esi
jne 0x1004d468
push 0x10156a70
push str.invalid_argument
push 0x1014f2f8
push 3
call fcn.10028220
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x24]
and dword [esi + 0x34], 0xff7fffff
call fcn.10007fd0
mov edi, eax
test edi, edi
js 0x1004d563
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x1004d4ac
push str.repository_has_no_working_directory
push 6
call fcn.10028220
add esp, 8
mov edi, 0xfffffff8
jmp 0x1004d563
push dword [esi + 0xc]
mov dl, 0x2f
lea ecx, [esp + 0x44]
push eax
call fcn.1002a440
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
test edi, edi
jne 0x1004d521
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x40]
push 0x200
push 0
call fcn.100547a0
add esp, 8
test al, al
jne 0x1004d51d
mov eax, dword [esp + 0x48]
push dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x1004d508
push str.path_too_long:__s
push 0x1e
call fcn.10028220
add esp, 0xc
or edi, 0xffffffff
jmp 0x1004d51f
push eax
push str.path_too_long:__.s
push 0x1e
call fcn.10028220
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d51f
xor edi, edi
test edi, edi
js 0x1004d563
push 0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.10050710
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d55f
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x98]
call fcn.10040360
test eax, eax
jns 0x1004d5a6
push str.cannot_add_submodule_without_working_directory
push 0x11
call fcn.10028220
add esp, 8
or edi, 0xffffffff
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1004dcdf
mov ecx, dword [ebx + 0xa8]
call fcn.10049f90
mov eax, dword [0x10170f7c]
lea esi, [ebx + 0x14]
mov dword [ebx + 0xa8], 0
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004da6c
mov ecx, eax
call dword [0x1012b304]
call dword [esp + 0x20]
jmp 0x1004da72
mov eax, dword [esi + 0xc]
xorps xmm0, xmm0
push dword [esp + 0x24]
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
mov dword [esp + 0x94], eax
call sym.user32.dll_git_index_caps
shr eax, 1
lea edx, [esp + 0x9c]
not al
lea ecx, [esp + 0x54]
add esp, 4
and al, 1
movzx eax, al
push eax
call fcn.10042a30
add esp, 4
test dword [esi + 0x34], 0x800000
jne 0x1004d619
push str.cannot_add_submodule_without_HEAD_to_index
jmp 0x1004d552
movups xmm0, xmmword [esi + 0x60]
mov eax, dword [esi + 0x70]
lea edi, [esi + 0x60]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x88], eax
movups xmmword [esp + 0x78], xmm0
test ebx, ebx
jne 0x1004d660
push str.repo
push str.invalid_argument
push 0x1014f2f8
push 3
call fcn.10028220
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d563
test edi, edi
jne 0x1004d685
push 0x1015147c
push str.invalid_argument
push 0x1014f2f8
push 3
call fcn.10028220
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d563
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1004d802
push 4
mov edx, ebx
mov dword [esp + 0x2c], 0x1017306d
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.1000cbd0
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d563
lea eax, [esp + 0x10]
push eax
call sym.user32.dll_git_odb_new
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d563
mov esi, dword [esp + 0x10]
mov eax, ebx
lea edx, [esi + 4]
xchg dword [edx], eax
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov edi, eax
test edi, edi
jne 0x1004d713
push str.cannot_access_repository_to_set_odb_caps
push 9
call fcn.10028220
add esp, 8
or edi, 0xffffffff
push esi
call sym.user32.dll_git_odb_free
add esp, 4
jmp 0x1004d563
lea edx, [edi + 0xa0]
xor ecx, ecx
mov dword [esp + 0x38], edx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov edx, eax
mov dword [esp + 0x10], edx
cmp edx, 0xffffffff
jne 0x1004d766
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.100078b0
test eax, eax
js 0x1004d778
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push 0xd
call fcn.100409e0
add esp, 4
test eax, eax
js 0x1004d778
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
mov edi, dword [esp + 0x38]
mov ecx, edx
lock cmpxchg dword [edi], ecx
mov eax, dword [esi + 0x58]
xor ecx, ecx
test edx, edx
setne cl
and eax, 0xfffffffe
or ecx, eax
mov dword [esi + 0x58], ecx
mov edx, dword [esp + 0x28]
mov ecx, esi
push 0
push 0
call fcn.10034610
mov edi, eax
add esp, 8
test edi, edi
js 0x1004d705
mov ecx, esi
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x1004d7b0
xor eax, eax
lea ecx, [esi + 4]
xchg dword [ecx], eax
push esi
call sym.user32.dll_git_odb_free
add esp, 4
cmp dword [esp + 0x2c], 0
jbe 0x1004d7da
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004d7da
cmp eax, 0x1017306c
je 0x1004d7da
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x1012b304]
call esi
add esp, 4
mov dword [esp + 0x2c], 0
xor ecx, ecx
mov dword [esp + 0x30], 0
xor eax, eax
mov dword [esp + 0x28], 0x1017306d
lock cmpxchg dword [ebx], ecx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push 0
lea ecx, [ebx + 0x10]
mov edx, edi
call fcn.10053fa0
mov esi, eax
add esp, 4
test esi, esi
je 0x1004d883
movzx eax, word [esi + 0x16]
cmp eax, 2
jne 0x1004d854
mov eax, 1
cmp ax, word [esi + 0x14]
je 0x1004d84b
mov ecx, esi
call fcn.100541b0
push str.the_requested_type_does_not_match_the_type_in_the_ODB
push 3
call fcn.10028220
add esp, 8
mov edi, 0xfffffffd
jmp 0x1004d563
mov dword [esp + 0x34], esi
jmp 0x1004d999
cmp eax, 1
jne 0x1004d862
mov dword [esp + 0x18], esi
jmp 0x1004d96f
push str.__Wrong_caching_type_in_the_global_object_cache_
push str.unrecoverable_internal_error
push 0x1014f2f8
push 0x23
call fcn.10028220
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d563
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1004d8ac
push 0x10154a4c
push str.invalid_argument
push 0x1014f2f8
push 3
call fcn.10028220
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d963
mov eax, edi
xor ecx, ecx
cmp byte [eax], 0
jne 0x1004d8da
inc ecx
inc eax
cmp ecx, 0x14
jb 0x1004d8b0
push str.cannot_read_object
push str.odb:__s:_null_OID_cannot_exist
push 9
call fcn.10028220
add esp, 0xc
mov edi, 0xfffffffd
jmp 0x1004d963
xor edx, edx
lea ecx, [esi + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
lea ecx, [eax + 0x10]
test eax, eax
jne 0x1004d8ef
lea ecx, [esi + 0x34]
push 1
mov edx, edi
call fcn.10053fa0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x1004d909
xor edi, edi
jmp 0x1004d967
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push edi
mov edx, esi
call fcn.10035700
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004d963
push esi
call sym.user32.dll_git_odb_refresh
mov esi, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x1004d950
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 1
push esi
call fcn.10035700
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004d963
push 0x28
mov edx, esi
mov ecx, str.no_match_for_id
call fcn.10036e20
add esp, 4
mov edi, eax
mov esi, dword [esp + 0x18]
test edi, edi
js 0x1004d563
push 1
push esi
mov edx, ebx
lea ecx, [esp + 0x3c]
call fcn.1003ab30
add esp, 8
mov edi, eax
test esi, esi
je 0x1004d98d
mov ecx, esi
call fcn.100541b0
test edi, edi
js 0x1004d563
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x1004d9c2
push str.commit
push str.invalid_argument
push 0x1014f2f8
push 3
call fcn.10028220
add esp, 0x10
mov dword [esp + 0x3c], connect
xor ecx, ecx
jmp 0x1004d9c8
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
test esi, esi
jne 0x1004d9fd
push str.commit
push str.invalid_argument
push 0x1014f2f8
push 3
call fcn.10028220
add esp, 0x10
mov dword [esp + 0x3c], connect
xor ecx, ecx
jmp 0x1004da03
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
test esi, esi
je 0x1004da1a
mov ecx, esi
call fcn.100541b0
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x50]
push eax
push esi
call sym.user32.dll_git_index_add
mov edi, eax
add esp, 8
test edi, edi
jne 0x1004d563
cmp dword [ebp + 0xc], eax
je 0x1004d563
push esi
call sym.user32.dll_git_index_write
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004d563
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
movups xmmword [ecx + 0x4c], xmm0
mov dword [ecx + 0x5c], eax
jmp 0x1004d563
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x10]
call fcn.10053bc0
mov eax, dword [0x10170f74]
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004da96
mov ecx, eax
call dword [0x1012b304]
call dword [esp + 0x20]
jmp 0x1004da9c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [ebx + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x1004daac
call fcn.100492b0
xor edx, edx
lea eax, [ebx + 8]
xchg dword [eax], edx
test edx, edx
je 0x1004dac7
xor ecx, ecx
lea eax, [edx + 4]
xchg dword [eax], ecx
push edx
call sym.user32.dll_git_config_free
add esp, 4
movaps xmm0, xmmword [0x1015efc0]
lea eax, [ebx + 0xc]
movups xmmword [ebx + 0x6c], xmm0
xor ecx, ecx
movups xmmword [ebx + 0x7c], xmm0
movups xmmword [ebx + 0x8c], xmm0
movq qword [ebx + 0x9c], xmm0
mov dword [ebx + 0xa4], 0xffffffff
xchg dword [eax], ecx
test ecx, ecx
je 0x1004db1b
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004db1e
cmp dword [edx], 0
jne 0x1004db1e
call fcn.10041440
jmp 0x1004db1e
or esi, 0xffffffff
xor edx, edx
xchg dword [ebx], edx
test edx, edx
je 0x1004db36
xor ecx, ecx
lea eax, [edx + 4]
xchg dword [eax], ecx
push edx
call sym.user32.dll_git_odb_free
add esp, 4
xor ecx, ecx
lea eax, [ebx + 4]
xchg dword [eax], ecx
test ecx, ecx
je 0x1004db5b
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x1004db5b
cmp dword [edx], 0
jne 0x1004db5b
call fcn.1003e1f0
lea ecx, [ebx + 0x10]
call fcn.10053d60
mov ecx, dword [ebx + 0x34]
call fcn.1002e9b0
mov eax, dword [ebx + 0x58]
xor ecx, ecx
mov dword [ebx + 0x34], 0
mov dword [esp + 0x24], ecx
test eax, eax
je 0x1004dbef
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, eax
jae 0x1004dbdc
mov eax, dword [ebx + 0x54]
add eax, edx
mov dword [esp + 0x1c], eax
je 0x1004dbdc
cmp dword [eax + 4], 0
jbe 0x1004dbc8
mov edx, dword [eax]
test edx, edx
je 0x1004dbc4
cmp edx, 0x1017306c
je 0x1004dbc4
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push edx
call dword [0x1012b304]
call esi
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0x1017306d
mov eax, dword [ebx + 0x58]
inc ecx
add edx, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jb 0x1004db89
push dword [ebx + 0x54]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x1012b304]
call esi
add esp, 4
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push dword [ebx + 0x38]
call dword [0x1012b304]
call esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
add esp, 4
mov ecx, esi
push dword [ebx + 0x3c]
call dword [0x1012b304]
call esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
add esp, 4
mov ecx, esi
push dword [ebx + 0x40]
call dword [0x1012b304]
call esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
add esp, 4
mov ecx, esi
push dword [ebx + 0x44]
call dword [0x1012b304]
call esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
add esp, 4
mov ecx, esi
push dword [ebx + 0x48]
call dword [0x1012b304]
call esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
add esp, 4
mov ecx, esi
push dword [ebx + 0x4c]
call dword [0x1012b304]
call esi
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
add esp, 4
mov ecx, esi
push dword [ebx + 0x50]
call dword [0x1012b304]
call esi
add esp, 4
mov ecx, 0xac
mov eax, ebx
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1004dcc0
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push ebx
call dword [0x1012b304]
call esi
add esp, 4
cmp dword [esp + 0x44], 0
jbe 0x1004dd09
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004dd09
cmp eax, 0x1017306c
je 0x1004dd09
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x1012b304]
call esi
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret