Function at 0x1004d900
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, 0x1020156d
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 0x1004d958
push 0x101dee80
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
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.10008510
mov edi, eax
test edi, edi
js 0x1004da53
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x1004d99c
push str.repository_has_no_working_directory
push 6
call fcn.10028740
add esp, 8
mov edi, 0xfffffff8
jmp 0x1004da53
push dword [esi + 0xc]
mov dl, 0x2f
lea ecx, [esp + 0x44]
push eax
call fcn.1002a950
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
test edi, edi
jne 0x1004da11
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x40]
push 0x200
push 0
call fcn.10054c90
add esp, 8
test al, al
jne 0x1004da0d
mov eax, dword [esp + 0x48]
push dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x1004d9f8
push str.path_too_long:__s
push 0x1e
call fcn.10028740
add esp, 0xc
or edi, 0xffffffff
jmp 0x1004da0f
push eax
push str.path_too_long:__.s
push 0x1e
call fcn.10028740
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004da0f
xor edi, edi
test edi, edi
js 0x1004da53
push 0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.10050c00
mov edi, eax
add esp, 4
test edi, edi
js 0x1004da4f
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x98]
call fcn.10040850
test eax, eax
jns 0x1004da96
push str.cannot_add_submodule_without_working_directory
push 0x11
call fcn.10028740
add esp, 8
or edi, 0xffffffff
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1004e1cf
mov ecx, dword [ebx + 0xa8]
call fcn.1004a470
mov eax, dword [0x101ff45c]
lea esi, [ebx + 0x14]
mov dword [ebx + 0xa8], 0
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004df5c
mov ecx, eax
call dword [0x101a54ac]
call dword [esp + 0x20]
jmp 0x1004df62
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.10042f20
add esp, 4
test dword [esi + 0x34], 0x800000
jne 0x1004db09
push str.cannot_add_submodule_without_HEAD_to_index
jmp 0x1004da42
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 0x1004db50
push str.repo
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004da53
test edi, edi
jne 0x1004db75
push 0x101d987c
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004da53
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1004dcf2
push 4
mov edx, ebx
mov dword [esp + 0x2c], 0x1020156d
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.1000d110
mov edi, eax
add esp, 4
test edi, edi
js 0x1004da53
lea eax, [esp + 0x10]
push eax
call sym.user32.dll_git_odb_new
mov edi, eax
add esp, 4
test edi, edi
js 0x1004da53
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 0x1004dc03
push str.cannot_access_repository_to_set_odb_caps
push 9
call fcn.10028740
add esp, 8
or edi, 0xffffffff
push esi
call sym.user32.dll_git_odb_free
add esp, 4
jmp 0x1004da53
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 0x1004dc56
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.10007e00
test eax, eax
js 0x1004dc68
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push 0xd
call fcn.10040ed0
add esp, 4
test eax, eax
js 0x1004dc68
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.10034b20
mov edi, eax
add esp, 8
test edi, edi
js 0x1004dbf5
mov ecx, esi
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x1004dca0
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 0x1004dcca
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004dcca
cmp eax, 0x1020156c
je 0x1004dcca
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
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], 0x1020156d
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.10054490
mov esi, eax
add esp, 4
test esi, esi
je 0x1004dd73
movzx eax, word [esi + 0x16]
cmp eax, 2
jne 0x1004dd44
mov eax, 1
cmp ax, word [esi + 0x14]
je 0x1004dd3b
mov ecx, esi
call fcn.100546a0
push str.the_requested_type_does_not_match_the_type_in_the_ODB
push 3
call fcn.10028740
add esp, 8
mov edi, 0xfffffffd
jmp 0x1004da53
mov dword [esp + 0x34], esi
jmp 0x1004de89
cmp eax, 1
jne 0x1004dd52
mov dword [esp + 0x18], esi
jmp 0x1004de5f
push str.__Wrong_caching_type_in_the_global_object_cache_
push str.unrecoverable_internal_error
push 0x101d76f8
push 0x23
call fcn.10028740
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004da53
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1004dd9c
push 0x101dce4c
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004de53
mov eax, edi
xor ecx, ecx
cmp byte [eax], 0
jne 0x1004ddca
inc ecx
inc eax
cmp ecx, 0x14
jb 0x1004dda0
push str.cannot_read_object
push str.odb:__s:_null_OID_cannot_exist
push 9
call fcn.10028740
add esp, 0xc
mov edi, 0xfffffffd
jmp 0x1004de53
xor edx, edx
lea ecx, [esi + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
lea ecx, [eax + 0x10]
test eax, eax
jne 0x1004dddf
lea ecx, [esi + 0x34]
push 1
mov edx, edi
call fcn.10054490
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x1004ddf9
xor edi, edi
jmp 0x1004de57
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push edi
mov edx, esi
call fcn.10035c10
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004de53
push esi
call sym.user32.dll_git_odb_refresh
mov esi, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x1004de40
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 1
push esi
call fcn.10035c10
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004de53
push 0x28
mov edx, esi
mov ecx, str.no_match_for_id
call fcn.10037310
add esp, 4
mov edi, eax
mov esi, dword [esp + 0x18]
test edi, edi
js 0x1004da53
push 1
push esi
mov edx, ebx
lea ecx, [esp + 0x3c]
call fcn.1003b020
add esp, 8
mov edi, eax
test esi, esi
je 0x1004de7d
mov ecx, esi
call fcn.100546a0
test edi, edi
js 0x1004da53
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x1004deb2
push str.commit
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
mov dword [esp + 0x3c], getsockname
xor ecx, ecx
jmp 0x1004deb8
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
test esi, esi
jne 0x1004deed
push str.commit
push str.invalid_argument
push 0x101d76f8
push 3
call fcn.10028740
add esp, 0x10
mov dword [esp + 0x3c], getsockname
xor ecx, ecx
jmp 0x1004def3
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
test esi, esi
je 0x1004df0a
mov ecx, esi
call fcn.100546a0
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 0x1004da53
cmp dword [ebp + 0xc], eax
je 0x1004da53
push esi
call sym.user32.dll_git_index_write
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004da53
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 0x1004da53
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x10]
call fcn.100540b0
mov eax, dword [0x101ff454]
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004df86
mov ecx, eax
call dword [0x101a54ac]
call dword [esp + 0x20]
jmp 0x1004df8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [ebx + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x1004df9c
call fcn.100497a0
xor edx, edx
lea eax, [ebx + 8]
xchg dword [eax], edx
test edx, edx
je 0x1004dfb7
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 [0x101e73d0]
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 0x1004e00b
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 0x1004e00e
cmp dword [edx], 0
jne 0x1004e00e
call fcn.10041930
jmp 0x1004e00e
or esi, 0xffffffff
xor edx, edx
xchg dword [ebx], edx
test edx, edx
je 0x1004e026
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 0x1004e04b
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x1004e04b
cmp dword [edx], 0
jne 0x1004e04b
call fcn.1003e6e0
lea ecx, [ebx + 0x10]
call fcn.10054250
mov ecx, dword [ebx + 0x34]
call fcn.1002eec0
mov eax, dword [ebx + 0x58]
xor ecx, ecx
mov dword [ebx + 0x34], 0
mov dword [esp + 0x24], ecx
test eax, eax
je 0x1004e0df
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, eax
jae 0x1004e0cc
mov eax, dword [ebx + 0x54]
add eax, edx
mov dword [esp + 0x1c], eax
je 0x1004e0cc
cmp dword [eax + 4], 0
jbe 0x1004e0b8
mov edx, dword [eax]
test edx, edx
je 0x1004e0b4
cmp edx, 0x1020156c
je 0x1004e0b4
mov esi, dword [fcn.10032f00]
mov ecx, esi
push edx
call dword [0x101a54ac]
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], 0x1020156d
mov eax, dword [ebx + 0x58]
inc ecx
add edx, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jb 0x1004e079
push dword [ebx + 0x54]
mov esi, dword [fcn.10032f00]
mov ecx, esi
call dword [0x101a54ac]
call esi
add esp, 4
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
mov esi, dword [fcn.10032f00]
mov ecx, esi
push dword [ebx + 0x38]
call dword [0x101a54ac]
call esi
mov esi, dword [fcn.10032f00]
add esp, 4
mov ecx, esi
push dword [ebx + 0x3c]
call dword [0x101a54ac]
call esi
mov esi, dword [fcn.10032f00]
add esp, 4
mov ecx, esi
push dword [ebx + 0x40]
call dword [0x101a54ac]
call esi
mov esi, dword [fcn.10032f00]
add esp, 4
mov ecx, esi
push dword [ebx + 0x44]
call dword [0x101a54ac]
call esi
mov esi, dword [fcn.10032f00]
add esp, 4
mov ecx, esi
push dword [ebx + 0x48]
call dword [0x101a54ac]
call esi
mov esi, dword [fcn.10032f00]
add esp, 4
mov ecx, esi
push dword [ebx + 0x4c]
call dword [0x101a54ac]
call esi
mov esi, dword [fcn.10032f00]
add esp, 4
mov ecx, esi
push dword [ebx + 0x50]
call dword [0x101a54ac]
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 0x1004e1b0
mov esi, dword [fcn.10032f00]
mov ecx, esi
push ebx
call dword [0x101a54ac]
call esi
add esp, 4
cmp dword [esp + 0x44], 0
jbe 0x1004e1f9
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004e1f9
cmp eax, 0x1020156c
je 0x1004e1f9
mov esi, dword [fcn.10032f00]
mov ecx, esi
push eax
call dword [0x101a54ac]
call esi
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret