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

Disassembly:
sub esp, 0x80
mov eax, dword [0x10156440]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
mov ebx, edx
push esi
mov dword [esp + 0x20], ecx
xor eax, eax
push edi
mov dword [esp + 0x14], 0
lea edx, [ebx + 4]
mov dword [esp + 0x18], 0x1015ddcd
xor ecx, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10042c4c
call fcn.1002b0b0
mov esi, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], 0
test eax, eax
jne 0x10042b99
mov dword [esi + 0x10], eax
mov eax, 0x1015ddcd
mov dword [esi + 0xc], 0x1015ddcd
cmp dword [esi + 0x10], 0
jbe 0x10042ba2
mov byte [eax], 0
mov eax, dword [esi + 0x14]
lea edx, [eax + 0x53]
cmp edx, eax
jb 0x10042bfc
lea eax, [edx + 1]
cmp eax, edx
jb 0x10042bfc
cmp dword [esi + 0xc], 0x1015ddcc
je 0x10042c30
cmp eax, dword [esi + 0x10]
jbe 0x10042bd4
push 1
mov edx, eax
lea ecx, [esi + 0xc]
call fcn.10029800
add esp, 4
test eax, eax
js 0x10042c07
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0xc]
push 0x53
push str.could_not_initialize_index_entry._Index_is_not_backed_up_by_an_existing_repository.
push eax
call fcn.100f5f90
mov ecx, dword [esi + 0x14]
add esp, 0xc
mov eax, dword [esi + 0xc]
add ecx, 0x53
mov dword [esi + 0x14], ecx
mov byte [ecx + eax], 0
jmp 0x10042c07
call fcn.1002b0b0
mov dword [eax], str.Out_of_memory
cmp dword [esi + 0xc], 0x1015ddcc
je 0x10042c30
call fcn.1002b0b0
lea esi, [eax + 4]
call fcn.1002b0b0
mov ecx, dword [eax + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], 0xa
call fcn.1002b0b0
mov dword [eax], esi
or eax, 0xffffffff
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100f4277
add esp, 0x80
ret
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov edi, eax
test edi, edi
jne 0x10042c75
push str.repo
push str.invalid_argument
push 0x1013afe8
push 3
call fcn.10028180
add esp, 0x10
jmp 0x10042c7b
test byte [edi + 0x60], 1
je 0x10042c96
push str.create_blob_from_file
push str.cannot__s._This_operation_is_not_allowed_against_bare_repositories.
push 6
call fcn.10028180
add esp, 0xc
mov eax, 0xfffffff8
jmp 0x10042c33
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x10042cae
push str.repository_has_no_working_directory
push 6
call fcn.10028180
add esp, 8
jmp 0x10042c30
push ebp
push eax
mov dl, 0x2f
lea ecx, [esp + 0x20]
call fcn.1002a390
mov esi, dword [esp + 0x20]
add esp, 8
test eax, eax
jne 0x10042d16
push 0x200
push 0
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.10054720
add esp, 8
test al, al
jne 0x10042d12
mov eax, dword [esp + 0x20]
push esi
cmp eax, 0xffffffff
jne 0x10042cfd
push str.path_too_long:__s
push 0x1e
call fcn.10028180
add esp, 0xc
or eax, 0xffffffff
jmp 0x10042d14
push eax
push str.path_too_long:__.s
push 0x1e
call fcn.10028180
add esp, 0x10
or eax, 0xffffffff
jmp 0x10042d14
xor eax, eax
test eax, eax
js 0x10042c30
push 0
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.1003f830
add esp, 4
test eax, eax
jne 0x10042d34
xor edi, edi
jmp 0x10042d4c
call fcn.100fe80a
push str.stat
mov edx, esi
mov ecx, dword [eax]
call fcn.10030150
add esp, 4
mov edi, eax
cmp dword [esp + 0x1c], 0
jbe 0x10042d73
test esi, esi
je 0x10042d73
cmp esi, 0x1015ddcc
je 0x10042d73
push esi
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
test edi, edi
js 0x10042df5
xor edx, edx
lea ecx, [ebx + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
push 1
lea ecx, [esp + 0x2c]
mov edx, eax
push ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.10042a30
add esp, 0xc
test eax, eax
js 0x10042c30
xor edx, edx
lea ecx, [ebx + 4]
xor eax, eax
lock cmpxchg dword [ecx], edx
push 1
push ecx
push ebp
push 0
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x8c]
call fcn.1006d110
mov ecx, dword [esp + 0x28]
mov edi, eax
add esp, 0x14
test edi, edi
jns 0x10042dfc
test ecx, ecx
je 0x10042df5
xorps xmm0, xmm0
movups xmmword [ecx + 0x28], xmm0
mov dword [ecx + 0x38], 0
mov esi, dword [method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4]
push ecx
mov ecx, esi
call dword [0x101182f8]
call esi
add esp, 4
mov eax, edi
jmp 0x10042c33
movups xmm0, xmmword [esp + 0x78]
lea edx, [esp + 0x28]
movups xmmword [ecx + 0x28], xmm0
mov eax, dword [esp + 0x88]
mov dword [ecx + 0x38], eax
mov eax, dword [ebx + 0x74]
shr eax, 2
not al
and al, 1
movzx eax, al
push eax
call fcn.10042980
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [eax], ecx
xor eax, eax
jmp 0x10042c33