Function at 0x10041390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c914
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x1008a5e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov al, byte [esi]
cmp al, 5
jne 0x100413f2
cmp ebx, 4
jae 0x100413de
mov dword [ebp + ebx*4 - 0x20], esi
inc ebx
cmp word [esi + 6], 1
lea eax, [esi + 8]
jbe 0x100413ea
mov eax, dword [eax]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 5
je 0x100413d4
cmp al, 3
jne 0x10041402
mov dword [esi + 0x10], 0
mov byte [esi], 2
jmp 0x1004146b
cmp al, 4
jne 0x1004146b
mov ecx, dword [esi + 0x10]
cmp edi, ecx
jl 0x1004142b
push dword [esi + 0x14]
call fcn.10048fc7
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov byte [esi], 2
jmp 0x1004146b
mov edx, dword [esi + 0x14]
lea eax, [ecx - 1]
cmp edi, eax
jne 0x10041451
mov edi, dword [edx + ecx*4 - 4]
push edx
call fcn.10048fc7
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], edi
mov byte [esi], 3
jmp 0x1004146b
sub ecx, edi
mov dword [esi + 0x10], ecx
lea eax, [ecx*4]
push eax
lea eax, [edx + edi*4]
push eax
push edx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
test ebx, ebx
je 0x100417a3
mov esi, dword [ebp + ebx*4 - 0x24]
dec ebx
cmp word [esi + 6], 1
lea edi, [esi + 8]
jbe 0x10041485
mov edi, dword [esi + 8]
mov ecx, dword [edi]
cmp byte [ecx], 2
jne 0x1004179b
call fcn.1003a4c0
mov dword [edi], 0
movzx ecx, word [esi + 6]
mov eax, ecx
sub eax, 0
je 0x100414f0
sub eax, 1
je 0x100414f0
sub eax, 1
je 0x100414d0
lea eax, [ecx - 1]
mov word [esi + 6], ax
movzx eax, ax
shl eax, 2
push eax
lea eax, [edi + 4]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
jmp 0x1004179b
mov esi, dword [edi + 4]
mov ecx, dword [ebp + ebx*4 - 0x20]
push esi
mov dword [edi + 4], 0
call fcn.1003bd00
mov ecx, esi
call fcn.1003a4c0
jmp 0x1004179b
lea eax, [ebp - 0xec]
mov byte [ebp - 0xf4], 0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xec], 0x10075ef4
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0xe8]
push 0
push 0
or edi, 1
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0xec]
mov dword [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf0], eax
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xe8], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 4
push 0x10075ea8
push 0x351
push 0x1004e89c
lea eax, [ebp - 0xec]
mov dword [ebp - 4], 2
push str.C:Users_runneradminAppDataLocalTemp_tmpf_0wcli0libddwaf_prefix_srclibddwaf_build_third_partyproj_re2_prefix_srcproj_re2_re2parse.cc
push eax
call fcn.100268e0
add esp, 8
push eax
call fcn.100268e0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.100268e0
add esp, 8
movzx eax, word [esi + 6]
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 4], 3
push str.Concat_of
push eax
call fcn.100268e0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
cmp byte [ebp - 0xf4], 0
mov dword [ebp - 4], 4
jne 0x10041740
lea eax, [ebp - 0xec]
push 0x10075efc
push eax
call fcn.100268e0
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
add esp, 8
mov dword [ebp - 0x28], eax
or edi, 4
mov eax, dword [ebp - 0xac]
xorps xmm0, xmm0
and al, 0x22
mov dword [ebp - 0x24], 0xf
movq qword [ebp - 0x4c], xmm0
cmp al, 2
je 0x1004167e
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax]
test ecx, ecx
je 0x1004167e
mov eax, dword [ebp - 0xd8]
cmp ecx, dword [ebp - 0xb0]
cmovb ecx, dword [ebp - 0xb0]
mov edx, dword [eax]
sub ecx, edx
jmp 0x100416af
test byte [ebp - 0xac], 4
jne 0x100416a9
mov eax, dword [ebp - 0xcc]
mov esi, dword [eax]
test esi, esi
je 0x100416a9
mov eax, dword [ebp - 0xdc]
mov edx, dword [eax]
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
sub ecx, edx
add ecx, esi
jmp 0x100416af
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x100416c3
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.1000eab0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
and edi, 0xfffffffb
lea esi, [ebp - 0x38]
or edi, 2
cmp dword [ebp - 0x24], 0x10
push 2
cmovae esi, dword [ebp - 0x38]
mov dword [ebp - 0x40], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push dword [ebp - 0x3c]
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov ecx, dword [ebp - 0x24]
add esp, 0x14
mov byte [ebp - 0xf4], 1
cmp ecx, 0x10
jb 0x1004172a
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10041720
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100417bf
push ecx
push edx
call fcn.10048403
add esp, 8
mov esi, dword [ebp + ebx*4 - 0x20]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf0], eax
lea ecx, [ebp - 0xe8]
call fcn.10027160
lea ecx, [ebp - 0xe4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 8], 0
mov byte [esi], 2
test ebx, ebx
jne 0x10041473
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10048062
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3