Function at 0x1004d380
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, 0x1015ddcd
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 0x1004d3d8
push 0x10142760
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
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.10007f30
mov edi, eax
test edi, edi
js 0x1004d4d3
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x1004d41c
push str.repository_has_no_working_directory
push 6
call fcn.10028180
add esp, 8
mov edi, 0xfffffff8
jmp 0x1004d4d3
push dword [esi + 0xc]
mov dl, 0x2f
lea ecx, [esp + 0x44]
push eax
call fcn.1002a390
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
test edi, edi
jne 0x1004d491
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x40]
push 0x200
push 0
call fcn.10054720
add esp, 8
test al, al
jne 0x1004d48d
mov eax, dword [esp + 0x48]
push dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x1004d478
push str.path_too_long:__s
push 0x1e
call fcn.10028180
add esp, 0xc
or edi, 0xffffffff
jmp 0x1004d48f
push eax
push str.path_too_long:__.s
push 0x1e
call fcn.10028180
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d48f
xor edi, edi
test edi, edi
js 0x1004d4d3
push 0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.10050680
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d4cf
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x98]
call fcn.100402b0
test eax, eax
jns 0x1004d516
push str.cannot_add_submodule_without_working_directory
push 0x11
call fcn.10028180
add esp, 8
or edi, 0xffffffff
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1004dc4f
mov ecx, dword [ebx + 0xa8]
call fcn.10049ee0
mov eax, dword [0x1015bccc]
lea esi, [ebx + 0x14]
mov dword [ebx + 0xa8], 0
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004d9dc
mov ecx, eax
call dword [0x101182f8]
call dword [esp + 0x20]
jmp 0x1004d9e2
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.10042980
add esp, 4
test dword [esi + 0x34], 0x800000
jne 0x1004d589
push str.cannot_add_submodule_without_HEAD_to_index
jmp 0x1004d4c2
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 0x1004d5d0
push str.repo
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d4d3
test edi, edi
jne 0x1004d5f5
push 0x1013d16c
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d4d3
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1004d772
push 4
mov edx, ebx
mov dword [esp + 0x2c], 0x1015ddcd
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.1000cb30
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d4d3
lea eax, [esp + 0x10]
push eax
call sym.user32.dll_git_odb_new
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d4d3
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 0x1004d683
push str.cannot_access_repository_to_set_odb_caps
push 9
call fcn.10028180
add esp, 8
or edi, 0xffffffff
push esi
call sym.user32.dll_git_odb_free
add esp, 4
jmp 0x1004d4d3
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 0x1004d6d6
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.10007820
test eax, eax
js 0x1004d6e8
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push 0xd
call fcn.10040930
add esp, 4
test eax, eax
js 0x1004d6e8
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.10034580
mov edi, eax
add esp, 8
test edi, edi
js 0x1004d675
mov ecx, esi
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x1004d720
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 0x1004d74a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004d74a
cmp eax, 0x1015ddcc
je 0x1004d74a
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x101182f8]
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], 0x1015ddcd
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.10053f20
mov esi, eax
add esp, 4
test esi, esi
je 0x1004d7f3
movzx eax, word [esi + 0x16]
cmp eax, 2
jne 0x1004d7c4
mov eax, 1
cmp ax, word [esi + 0x14]
je 0x1004d7bb
mov ecx, esi
call fcn.10054130
push str.the_requested_type_does_not_match_the_type_in_the_ODB
push 3
call fcn.10028180
add esp, 8
mov edi, 0xfffffffd
jmp 0x1004d4d3
mov dword [esp + 0x34], esi
jmp 0x1004d909
cmp eax, 1
jne 0x1004d7d2
mov dword [esp + 0x18], esi
jmp 0x1004d8df
push str.__Wrong_caching_type_in_the_global_object_cache_
push str.unrecoverable_internal_error
push 0x1013afe8
push 0x23
call fcn.10028180
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d4d3
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1004d81c
push 0x1014073c
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d8d3
mov eax, edi
xor ecx, ecx
cmp byte [eax], 0
jne 0x1004d84a
inc ecx
inc eax
cmp ecx, 0x14
jb 0x1004d820
push str.cannot_read_object
push str.odb:__s:_null_OID_cannot_exist
push 9
call fcn.10028180
add esp, 0xc
mov edi, 0xfffffffd
jmp 0x1004d8d3
xor edx, edx
lea ecx, [esi + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
lea ecx, [eax + 0x10]
test eax, eax
jne 0x1004d85f
lea ecx, [esi + 0x34]
push 1
mov edx, edi
call fcn.10053f20
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x1004d879
xor edi, edi
jmp 0x1004d8d7
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push edi
mov edx, esi
call fcn.10035670
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004d8d3
push esi
call sym.user32.dll_git_odb_refresh
mov esi, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x1004d8c0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 1
push esi
call fcn.10035670
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004d8d3
push 0x28
mov edx, esi
mov ecx, str.no_match_for_id
call fcn.10036d70
add esp, 4
mov edi, eax
mov esi, dword [esp + 0x18]
test edi, edi
js 0x1004d4d3
push 1
push esi
mov edx, ebx
lea ecx, [esp + 0x3c]
call fcn.1003aa80
add esp, 8
mov edi, eax
test esi, esi
je 0x1004d8fd
mov ecx, esi
call fcn.10054130
test edi, edi
js 0x1004d4d3
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x1004d932
push str.commit
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
mov dword [esp + 0x3c], closesocket
xor ecx, ecx
jmp 0x1004d938
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
test esi, esi
jne 0x1004d96d
push str.commit
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
mov dword [esp + 0x3c], closesocket
xor ecx, ecx
jmp 0x1004d973
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
test esi, esi
je 0x1004d98a
mov ecx, esi
call fcn.10054130
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 0x1004d4d3
cmp dword [ebp + 0xc], eax
je 0x1004d4d3
push esi
call sym.user32.dll_git_index_write
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004d4d3
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 0x1004d4d3
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x10]
call fcn.10053b40
mov eax, dword [0x1015bcc4]
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004da06
mov ecx, eax
call dword [0x101182f8]
call dword [esp + 0x20]
jmp 0x1004da0c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [ebx + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x1004da1c
call fcn.10049210
xor edx, edx
lea eax, [ebx + 8]
xchg dword [eax], edx
test edx, edx
je 0x1004da37
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 [0x1014acb0]
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 0x1004da8b
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 0x1004da8e
cmp dword [edx], 0
jne 0x1004da8e
call fcn.10041390
jmp 0x1004da8e
or esi, 0xffffffff
xor edx, edx
xchg dword [ebx], edx
test edx, edx
je 0x1004daa6
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 0x1004dacb
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x1004dacb
cmp dword [edx], 0
jne 0x1004dacb
call fcn.1003e140
lea ecx, [ebx + 0x10]
call fcn.10053ce0
mov ecx, dword [ebx + 0x34]
call fcn.1002e910
mov eax, dword [ebx + 0x58]
xor ecx, ecx
mov dword [ebx + 0x34], 0
mov dword [esp + 0x24], ecx
test eax, eax
je 0x1004db5f
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, eax
jae 0x1004db4c
mov eax, dword [ebx + 0x54]
add eax, edx
mov dword [esp + 0x1c], eax
je 0x1004db4c
cmp dword [eax + 4], 0
jbe 0x1004db38
mov edx, dword [eax]
test edx, edx
je 0x1004db34
cmp edx, 0x1015ddcc
je 0x1004db34
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push edx
call dword [0x101182f8]
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], 0x1015ddcd
mov eax, dword [ebx + 0x58]
inc ecx
add edx, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jb 0x1004daf9
push dword [ebx + 0x54]
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
call dword [0x101182f8]
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 [0x101182f8]
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 [0x101182f8]
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 [0x101182f8]
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 [0x101182f8]
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 [0x101182f8]
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 [0x101182f8]
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 [0x101182f8]
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 0x1004dc30
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push ebx
call dword [0x101182f8]
call esi
add esp, 4
cmp dword [esp + 0x44], 0
jbe 0x1004dc79
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004dc79
cmp eax, 0x1015ddcc
je 0x1004dc79
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
mov ecx, esi
push eax
call dword [0x101182f8]
call esi
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret