Function at 0x1004e040
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, 0x1029182d
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 0x1004e098
push 0x1025e6a8
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
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.10008c10
mov edi, eax
test edi, edi
js 0x1004e193
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x44]
test eax, eax
jne 0x1004e0dc
push str.repository_has_no_working_directory
push 6
call fcn.10028e40
add esp, 8
mov edi, 0xfffffff8
jmp 0x1004e193
push dword [esi + 0xc]
mov dl, 0x2f
lea ecx, [esp + 0x44]
push eax
call fcn.1002b050
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
test edi, edi
jne 0x1004e151
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x40]
push 0x200
push 0
call fcn.100553d0
add esp, 8
test al, al
jne 0x1004e14d
mov eax, dword [esp + 0x48]
push dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x1004e138
push str.path_too_long:__s
push 0x1e
call fcn.10028e40
add esp, 0xc
or edi, 0xffffffff
jmp 0x1004e14f
push eax
push str.path_too_long:__.s
push 0x1e
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004e14f
xor edi, edi
test edi, edi
js 0x1004e193
push 0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.10051340
mov edi, eax
add esp, 4
test edi, edi
js 0x1004e18f
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x98]
call fcn.10040f60
test eax, eax
jns 0x1004e1d6
push str.cannot_add_submodule_without_working_directory
push 0x11
call fcn.10028e40
add esp, 8
or edi, 0xffffffff
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1004e90f
mov ecx, dword [ebx + 0xa8]
call fcn.1004abb0
mov eax, dword [0x1028f70c]
lea esi, [ebx + 0x14]
mov dword [ebx + 0xa8], 0
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004e69c
mov ecx, eax
call dword [0x1021f564]
call dword [esp + 0x20]
jmp 0x1004e6a2
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.10043630
add esp, 4
test dword [esi + 0x34], 0x800000
jne 0x1004e249
push str.cannot_add_submodule_without_HEAD_to_index
jmp 0x1004e182
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 0x1004e290
push str.repo
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004e193
test edi, edi
jne 0x1004e2b5
push 0x1025909c
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004e193
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [ebx], ecx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1004e432
push 4
mov edx, ebx
mov dword [esp + 0x2c], 0x1029182d
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.1000d810
mov edi, eax
add esp, 4
test edi, edi
js 0x1004e193
lea eax, [esp + 0x10]
push eax
call sym.user32.dll_git_odb_new
mov edi, eax
add esp, 4
test edi, edi
js 0x1004e193
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 0x1004e343
push str.cannot_access_repository_to_set_odb_caps
push 9
call fcn.10028e40
add esp, 8
or edi, 0xffffffff
push esi
call sym.user32.dll_git_odb_free
add esp, 4
jmp 0x1004e193
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 0x1004e396
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.10008500
test eax, eax
js 0x1004e3a8
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push 0xd
call fcn.100415e0
add esp, 4
test eax, eax
js 0x1004e3a8
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.10035220
mov edi, eax
add esp, 8
test edi, edi
js 0x1004e335
mov ecx, esi
xor eax, eax
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x1004e3e0
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 0x1004e40a
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004e40a
cmp eax, 0x1029182c
je 0x1004e40a
mov esi, dword [fcn.10033600]
mov ecx, esi
push eax
call dword [0x1021f564]
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], 0x1029182d
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.10054bd0
mov esi, eax
add esp, 4
test esi, esi
je 0x1004e4b3
movzx eax, word [esi + 0x16]
cmp eax, 2
jne 0x1004e484
mov eax, 1
cmp ax, word [esi + 0x14]
je 0x1004e47b
mov ecx, esi
call fcn.10054de0
push str.the_requested_type_does_not_match_the_type_in_the_ODB
push 3
call fcn.10028e40
add esp, 8
mov edi, 0xfffffffd
jmp 0x1004e193
mov dword [esp + 0x34], esi
jmp 0x1004e5c9
cmp eax, 1
jne 0x1004e492
mov dword [esp + 0x18], esi
jmp 0x1004e59f
push str.__Wrong_caching_type_in_the_global_object_cache_
push str.unrecoverable_internal_error
push 0x10256f18
push 0x23
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004e193
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1004e4dc
push 0x1025c674
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x1004e593
mov eax, edi
xor ecx, ecx
cmp byte [eax], 0
jne 0x1004e50a
inc ecx
inc eax
cmp ecx, 0x14
jb 0x1004e4e0
push str.cannot_read_object
push str.odb:__s:_null_OID_cannot_exist
push 9
call fcn.10028e40
add esp, 0xc
mov edi, 0xfffffffd
jmp 0x1004e593
xor edx, edx
lea ecx, [esi + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
lea ecx, [eax + 0x10]
test eax, eax
jne 0x1004e51f
lea ecx, [esi + 0x34]
push 1
mov edx, edi
call fcn.10054bd0
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
test esi, esi
je 0x1004e539
xor edi, edi
jmp 0x1004e597
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push edi
mov edx, esi
call fcn.10036310
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004e593
push esi
call sym.user32.dll_git_odb_refresh
mov esi, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x1004e580
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 1
push esi
call fcn.10036310
mov edi, eax
add esp, 8
cmp edi, 0xfffffffd
jne 0x1004e593
push 0x28
mov edx, esi
mov ecx, str.no_match_for_id
call fcn.10037a10
add esp, 4
mov edi, eax
mov esi, dword [esp + 0x18]
test edi, edi
js 0x1004e193
push 1
push esi
mov edx, ebx
lea ecx, [esp + 0x3c]
call fcn.1003b730
add esp, 8
mov edi, eax
test esi, esi
je 0x1004e5bd
mov ecx, esi
call fcn.10054de0
test edi, edi
js 0x1004e193
mov esi, dword [esp + 0x34]
test esi, esi
jne 0x1004e5f2
push str.commit
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
mov dword [esp + 0x3c], closesocket
xor ecx, ecx
jmp 0x1004e5f8
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0
test esi, esi
jne 0x1004e62d
push str.commit
push str.invalid_argument
push 0x10256f18
push 3
call fcn.10028e40
add esp, 0x10
mov dword [esp + 0x3c], closesocket
xor ecx, ecx
jmp 0x1004e633
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
test esi, esi
je 0x1004e64a
mov ecx, esi
call fcn.10054de0
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 0x1004e193
cmp dword [ebp + 0xc], eax
je 0x1004e193
push esi
call sym.user32.dll_git_index_write
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004e193
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 0x1004e193
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebx + 0x10]
call fcn.100547f0
mov eax, dword [0x1028f704]
mov dword [esp + 0x1c], eax
push esi
test eax, eax
je 0x1004e6c6
mov ecx, eax
call dword [0x1021f564]
call dword [esp + 0x20]
jmp 0x1004e6cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
lea eax, [ebx + 0x30]
xchg dword [eax], ecx
test ecx, ecx
je 0x1004e6dc
call fcn.10049ee0
xor edx, edx
lea eax, [ebx + 8]
xchg dword [eax], edx
test edx, edx
je 0x1004e6f7
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 [0x10266c00]
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 0x1004e74b
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 0x1004e74e
cmp dword [edx], 0
jne 0x1004e74e
call fcn.10042040
jmp 0x1004e74e
or esi, 0xffffffff
xor edx, edx
xchg dword [ebx], edx
test edx, edx
je 0x1004e766
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 0x1004e78b
lea edx, [ecx + 4]
xor eax, eax
xchg dword [edx], eax
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x1004e78b
cmp dword [edx], 0
jne 0x1004e78b
call fcn.1003edf0
lea ecx, [ebx + 0x10]
call fcn.10054990
mov ecx, dword [ebx + 0x34]
call fcn.1002f5c0
mov eax, dword [ebx + 0x58]
xor ecx, ecx
mov dword [ebx + 0x34], 0
mov dword [esp + 0x24], ecx
test eax, eax
je 0x1004e81f
xor edx, edx
mov dword [esp + 0x14], edx
cmp ecx, eax
jae 0x1004e80c
mov eax, dword [ebx + 0x54]
add eax, edx
mov dword [esp + 0x1c], eax
je 0x1004e80c
cmp dword [eax + 4], 0
jbe 0x1004e7f8
mov edx, dword [eax]
test edx, edx
je 0x1004e7f4
cmp edx, 0x1029182c
je 0x1004e7f4
mov esi, dword [fcn.10033600]
mov ecx, esi
push edx
call dword [0x1021f564]
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], 0x1029182d
mov eax, dword [ebx + 0x58]
inc ecx
add edx, 0xc
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
cmp ecx, eax
jb 0x1004e7b9
push dword [ebx + 0x54]
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x1021f564]
call esi
add esp, 4
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
mov esi, dword [fcn.10033600]
mov ecx, esi
push dword [ebx + 0x38]
call dword [0x1021f564]
call esi
mov esi, dword [fcn.10033600]
add esp, 4
mov ecx, esi
push dword [ebx + 0x3c]
call dword [0x1021f564]
call esi
mov esi, dword [fcn.10033600]
add esp, 4
mov ecx, esi
push dword [ebx + 0x40]
call dword [0x1021f564]
call esi
mov esi, dword [fcn.10033600]
add esp, 4
mov ecx, esi
push dword [ebx + 0x44]
call dword [0x1021f564]
call esi
mov esi, dword [fcn.10033600]
add esp, 4
mov ecx, esi
push dword [ebx + 0x48]
call dword [0x1021f564]
call esi
mov esi, dword [fcn.10033600]
add esp, 4
mov ecx, esi
push dword [ebx + 0x4c]
call dword [0x1021f564]
call esi
mov esi, dword [fcn.10033600]
add esp, 4
mov ecx, esi
push dword [ebx + 0x50]
call dword [0x1021f564]
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 0x1004e8f0
mov esi, dword [fcn.10033600]
mov ecx, esi
push ebx
call dword [0x1021f564]
call esi
add esp, 4
cmp dword [esp + 0x44], 0
jbe 0x1004e939
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1004e939
cmp eax, 0x1029182c
je 0x1004e939
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 ebx
mov esp, ebp
pop ebp
ret