Function at 0x1007dfe0
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x101f9740]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x2c], edx
xor ebx, ebx
mov dword [esp + 0x14], 0
push esi
xorps xmm0, xmm0
mov dword [esp + 0x78], ebx
mov eax, dword [ebp + 0x10]
movups xmmword [esp + 0x68], xmm0
push edi
push 0x102025a0
add dword [eax + 0x20], 0xffffffec
mov dword [esp + 0x40], ebx
adc dword [eax + 0x24], 0xffffffff
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0x102025ed
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
call fcn.1007f920
push 0x102025a0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
js 0x1007e3e8
mov eax, dword [ebp + 0x10]
push dword [esp + 0x34]
push dword [ebp + 0x2e7c]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x4c], ecx
call sym.user32.dll_git_odb_read
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x1007e09f
push str.missing_delta_bases
push 0xf
call fcn.10028e40
add esp, 8
jmp 0x1007e3ea
mov edi, dword [esp + 0x1c]
mov esi, dword [fcn.1005f470]
mov ecx, esi
push 0x3b7
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcindexer.c
mov eax, dword [edi + 0x20]
push 0x28
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x18]
push 1
mov dword [esp + 0x48], eax
call dword [0x101a64ac]
call esi
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x1007e463
push 0
push 0
push 0
call fcn.101525f0
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x8c]
add esp, 0xc
mov dword [ebx + 0x14], eax
movsx eax, word [edi + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
call fcn.10081230
mov edi, eax
add esp, 8
test edi, edi
js 0x1007e3e8
push dword [esp + 0x18]
lea edx, [esp + 0x84]
mov ecx, ebp
call fcn.1007d5f0
mov edi, eax
add esp, 4
test edi, edi
js 0x1007e3e8
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
add dword [eax + 0x20], ecx
adc dword [eax + 0x24], 0
lea eax, [esp + 0x84]
push eax
push dword [ebx + 0x14]
call fcn.101525f0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x34]
add esp, 0xc
mov dword [ebx + 0x14], eax
push 1
push esi
call fcn.100b91d0
mov edi, eax
add esp, 8
test edi, edi
js 0x1007e3e8
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
test edi, edi
je 0x1007e2fa
mov eax, dword [0x10200554]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1007e1c3
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [0x10200554], eax
mov esi, edi
xor edi, edi
add esi, ecx
adc edi, dword [esp + 0x24]
xor ebx, ebx
push ebx
push eax
push edi
push esi
call fcn.10173ab0
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
sub ecx, eax
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x10]
sbb ebx, ebx
movlpd qword [esp + 0x48], xmm0
add ecx, esi
mov dword [esp + 0x58], 0
push dword [eax + 0x1c]
adc ebx, edi
sub ecx, 1
mov dword [esp + 0x54], ecx
sbb ebx, 0
mov dword [esp + 0x58], ebx
call fcn.10185662
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
add esp, 4
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007e43d
cmp dword [esp + 0x14], 0
jl 0x1007e442
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x24], eax
test esi, esi
jne 0x1007e276
push str.data
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
or edi, 0xffffffff
jmp 0x1007e2ea
mov eax, dword [0x10200554]
test eax, eax
jne 0x1007e293
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x64]
mov dword [0x10200554], eax
push 0
push eax
push ebx
push edi
call fcn.10173ab0
sub edi, eax
mov dword [esp + 0x20], eax
sbb ebx, 0
push ebx
mov ebx, dword [esp + 0x34]
push edi
push dword [esp + 0x2c]
push ecx
push 2
lea edx, [eax + ebx]
lea ecx, [esp + 0x5c]
call fcn.10094ae0
mov edi, eax
add esp, 0x14
test edi, edi
js 0x1007e3e2
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x20]
push ebx
push esi
push eax
call fcn.10174d90
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.10094cb0
xor edi, edi
test edi, edi
js 0x1007e3e2
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
push edi
push esi
add dword [eax + 0x20], edi
adc dword [eax + 0x24], 0
push dword [ebx + 0x14]
call fcn.101525f0
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [esp + 0x2c], 0
mov dword [ebx + 0x14], eax
jbe 0x1007e342
test esi, esi
je 0x1007e342
cmp esi, 0x102025ec
je 0x1007e342
push esi
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x101a64ac]
call esi
add esp, 4
push 0x14
lea edx, [esp + 0x70]
mov ecx, ebp
call fcn.1007d5f0
mov edi, eax
add esp, 4
test edi, edi
js 0x1007e3e2
mov eax, dword [ebp + 0x10]
push 0x3d6
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcindexer.c
push 0x20
add dword [eax + 0x20], 0x14
push 1
adc dword [eax + 0x24], 0
mov esi, dword [fcn.1005f470]
mov ecx, esi
call dword [0x101a64ac]
call esi
mov edx, eax
add esp, 0x10
mov dword [esp + 0x3c], edx
test edx, edx
je 0x1007e463
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
push edi
movups xmm0, xmmword [eax]
push esi
push edx
movups xmmword [edx + 8], xmm0
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x18], ecx
mov edx, ebx
movups xmm0, xmmword [eax]
mov ecx, dword [esp + 0x44]
movups xmmword [ebx], xmm0
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x10], eax
xor eax, eax
add ecx, dword [esp + 0x24]
adc eax, eax
add ecx, esi
mov dword [ebp + 0x18], ecx
mov ecx, ebp
adc eax, edi
mov dword [ebp + 0x1c], eax
call fcn.1007d260
add esp, 0xc
mov edi, eax
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x1007e415
mov esi, dword [fcn.10033600]
mov ecx, esi
push ebx
call dword [0x101a64ac]
call esi
mov esi, dword [fcn.10033600]
add esp, 4
mov ecx, esi
push dword [esp + 0x3c]
call dword [0x101a64ac]
call esi
add esp, 4
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1007e422
call fcn.10054de0
mov eax, edi
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10173495
add esp, 0xbc
ret
call fcn.1003ff70
mov eax, dword [ebp + 0x10]
add eax, 0xa8
push eax
push str.cannot_extend_packfile__s
push 2
call fcn.10028e40
mov ebx, dword [esp + 0x1c]
add esp, 0xc
or edi, 0xffffffff
jmp 0x1007e3ea
or eax, 0xffffffff
jmp 0x1007e424