Function at 0x1004d460
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, 0x101b01ed
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 0x1004d4b8
push 0x1018ded8
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
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.10008070
mov edi, eax
test edi, edi
js 0x1004d5b3
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x1004d4fc
push str.repository_has_no_working_directory
push 6
call fcn.10028290
add esp, 8
mov edi, 0xfffffff8
jmp 0x1004d5b3
push dword [esi + 0xc]
mov dl, 0x2f
lea ecx, [esp + 0x44]
push eax
call fcn.1002a4a0
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
test edi, edi
jne 0x1004d571
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x40]
push 0x200
push 0
call fcn.10054800
add esp, 8
test al, al
jne 0x1004d56d
mov eax, dword [esp + 0x48]
push dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x1004d558
push str.path_too_long:__s
push 0x1e
call fcn.10028290
add esp, 0xc
or edi, 0xffffffff
jmp 0x1004d56f
push eax
push str.path_too_long:__.s
push 0x1e
call fcn.10028290
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d56f
xor edi, edi
test edi, edi
js 0x1004d5b3
push 0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.10050770
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d5af
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x98]
call fcn.100403b0
test eax, eax
jns 0x1004d5f6
push str.cannot_add_submodule_without_working_directory
push 0x11
call fcn.10028290
add esp, 8
or edi, 0xffffffff
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1004dd2f
mov ecx, dword [ebx + 0xa8]
call fcn.10049fd0
mov eax, dword [0x101ae0fc]
lea esi, [ebx + 0x14]
mov dword [ebx + 0xa8], 0
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004dabc
mov ecx, eax
call dword [0x1015f3cc]
call dword [esp + 0x20]
jmp 0x1004dac2
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.10042a80
add esp, 4
test dword [esi + 0x34], 0x800000
jne 0x1004d669
push str.cannot_add_submodule_without_HEAD_to_index
jmp 0x1004d5a2
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 0x1004d6b0
push str.repo
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d5b3
test edi, edi
jne 0x1004d6d5
push 0x101888dc
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d5b3
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1004d852
push 4
mov edx, ebx
mov dword [esp + 0x2c], 0x101b01ed
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.1000cc70
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d5b3
lea eax, [esp + 0x10]
push eax
call sym.user32.dll_git_odb_new
mov edi, eax
add esp, 4
test edi, edi
js 0x1004d5b3
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 0x1004d763
push str.cannot_access_repository_to_set_odb_caps
push 9
call fcn.10028290
add esp, 8
or edi, 0xffffffff
push esi
call sym.user32.dll_git_odb_free
add esp, 4
jmp 0x1004d5b3
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 0x1004d7b6
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.10007960
test eax, eax
js 0x1004d7c8
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push 0xd
call fcn.10040a30
add esp, 4
test eax, eax
js 0x1004d7c8
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.10034670
mov edi, eax
add esp, 8
test edi, edi
js 0x1004d755
mov ecx, esi
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x1004d800
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 0x1004d82a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004d82a
cmp eax, 0x101b01ec
je 0x1004d82a
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
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], 0x101b01ed
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.10054000
mov esi, eax
add esp, 4
test esi, esi
je 0x1004d8d3
movzx eax, word [esi + 0x16]
cmp eax, 2
jne 0x1004d8a4
mov eax, 1
cmp ax, word [esi + 0x14]
je 0x1004d89b
mov ecx, esi
call fcn.10054210
push str.the_requested_type_does_not_match_the_type_in_the_ODB
push 3
call fcn.10028290
add esp, 8
mov edi, 0xfffffffd
jmp 0x1004d5b3
mov dword [esp + 0x34], esi
jmp 0x1004d9e9
cmp eax, 1
jne 0x1004d8b2
mov dword [esp + 0x18], esi
jmp 0x1004d9bf
push str.__Wrong_caching_type_in_the_global_object_cache_
push str.unrecoverable_internal_error
push 0x10186758
push 0x23
call fcn.10028290
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d5b3
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1004d8fc
push 0x1018beac
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004d9b3
mov eax, edi
xor ecx, ecx
cmp byte [eax], 0
jne 0x1004d92a
inc ecx
inc eax
cmp ecx, 0x14
jb 0x1004d900
push str.cannot_read_object
push str.odb:__s:_null_OID_cannot_exist
push 9
call fcn.10028290
add esp, 0xc
mov edi, 0xfffffffd
jmp 0x1004d9b3
xor edx, edx
lea ecx, [esi + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
lea ecx, [eax + 0x10]
test eax, eax
jne 0x1004d93f
lea ecx, [esi + 0x34]
push 1
mov edx, edi
call fcn.10054000
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x1004d959
xor edi, edi
jmp 0x1004d9b7
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push edi
mov edx, esi
call fcn.10035760
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004d9b3
push esi
call sym.user32.dll_git_odb_refresh
mov esi, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x1004d9a0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 1
push esi
call fcn.10035760
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004d9b3
push 0x28
mov edx, esi
mov ecx, str.no_match_for_id
call fcn.10036e60
add esp, 4
mov edi, eax
mov esi, dword [esp + 0x18]
test edi, edi
js 0x1004d5b3
push 1
push esi
mov edx, ebx
lea ecx, [esp + 0x3c]
call fcn.1003ab70
add esp, 8
mov edi, eax
test esi, esi
je 0x1004d9dd
mov ecx, esi
call fcn.10054210
test edi, edi
js 0x1004d5b3
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x1004da12
push str.commit
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
mov dword [esp + 0x3c], connect
xor ecx, ecx
jmp 0x1004da18
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
test esi, esi
jne 0x1004da4d
push str.commit
push str.invalid_argument
push 0x10186758
push 3
call fcn.10028290
add esp, 0x10
mov dword [esp + 0x3c], connect
xor ecx, ecx
jmp 0x1004da53
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
test esi, esi
je 0x1004da6a
mov ecx, esi
call fcn.10054210
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 0x1004d5b3
cmp dword [ebp + 0xc], eax
je 0x1004d5b3
push esi
call sym.user32.dll_git_index_write
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004d5b3
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 0x1004d5b3
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x10]
call fcn.10053c20
mov eax, dword [0x101ae0f4]
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004dae6
mov ecx, eax
call dword [0x1015f3cc]
call dword [esp + 0x20]
jmp 0x1004daec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [ebx + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x1004dafc
call fcn.10049300
xor edx, edx
lea eax, [ebx + 8]
xchg dword [eax], edx
test edx, edx
je 0x1004db17
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 [0x10196420]
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 0x1004db6b
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 0x1004db6e
cmp dword [edx], 0
jne 0x1004db6e
call fcn.10041490
jmp 0x1004db6e
or esi, 0xffffffff
xor edx, edx
xchg dword [ebx], edx
test edx, edx
je 0x1004db86
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 0x1004dbab
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x1004dbab
cmp dword [edx], 0
jne 0x1004dbab
call fcn.1003e240
lea ecx, [ebx + 0x10]
call fcn.10053dc0
mov ecx, dword [ebx + 0x34]
call fcn.1002ea10
mov eax, dword [ebx + 0x58]
xor ecx, ecx
mov dword [ebx + 0x34], 0
mov dword [esp + 0x24], ecx
test eax, eax
je 0x1004dc3f
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, eax
jae 0x1004dc2c
mov eax, dword [ebx + 0x54]
add eax, edx
mov dword [esp + 0x1c], eax
je 0x1004dc2c
cmp dword [eax + 4], 0
jbe 0x1004dc18
mov edx, dword [eax]
test edx, edx
je 0x1004dc14
cmp edx, 0x101b01ec
je 0x1004dc14
mov esi, dword [fcn.10032a50]
mov ecx, esi
push edx
call dword [0x1015f3cc]
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], 0x101b01ed
mov eax, dword [ebx + 0x58]
inc ecx
add edx, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jb 0x1004dbd9
push dword [ebx + 0x54]
mov esi, dword [fcn.10032a50]
mov ecx, esi
call dword [0x1015f3cc]
call esi
add esp, 4
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
mov esi, dword [fcn.10032a50]
mov ecx, esi
push dword [ebx + 0x38]
call dword [0x1015f3cc]
call esi
mov esi, dword [fcn.10032a50]
add esp, 4
mov ecx, esi
push dword [ebx + 0x3c]
call dword [0x1015f3cc]
call esi
mov esi, dword [fcn.10032a50]
add esp, 4
mov ecx, esi
push dword [ebx + 0x40]
call dword [0x1015f3cc]
call esi
mov esi, dword [fcn.10032a50]
add esp, 4
mov ecx, esi
push dword [ebx + 0x44]
call dword [0x1015f3cc]
call esi
mov esi, dword [fcn.10032a50]
add esp, 4
mov ecx, esi
push dword [ebx + 0x48]
call dword [0x1015f3cc]
call esi
mov esi, dword [fcn.10032a50]
add esp, 4
mov ecx, esi
push dword [ebx + 0x4c]
call dword [0x1015f3cc]
call esi
mov esi, dword [fcn.10032a50]
add esp, 4
mov ecx, esi
push dword [ebx + 0x50]
call dword [0x1015f3cc]
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 0x1004dd10
mov esi, dword [fcn.10032a50]
mov ecx, esi
push ebx
call dword [0x1015f3cc]
call esi
add esp, 4
cmp dword [esp + 0x44], 0
jbe 0x1004dd59
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004dd59
cmp eax, 0x101b01ec
je 0x1004dd59
mov esi, dword [fcn.10032a50]
mov ecx, esi
push eax
call dword [0x1015f3cc]
call esi
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret