Function at 0x41c23f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1028
call fcn.0042d360
mov eax, dword [0x44d998]
push esi
mov esi, ecx
mov dword [esp + 0x1028], eax
mov eax, dword [esi + 0xec]
push edi
xor edi, edi
cmp eax, edi
jne 0x41c26f
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x1024]
call fcn.0042cc6e
add esp, 0x1028
ret 4
mov eax, dword [esp + 0x1034]
push ebp
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x2c], ebp
jne 0x41c2b3
pop ebp
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1024]
call fcn.0042cc6e
add esp, 0x1028
ret 4
lea ecx, [esi + 0x434]
lea edx, [esi + 0xb78]
cmp ecx, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], edi
je 0x41c517
lea eax, [ecx + 0x10]
push ebx
mov dword [esp + 0x1c], eax
mov bl, 0x2f
mov esi, dword [eax]
cmp esi, eax
je 0x41c500
jmp 0x41c2f0
cmp dword [esp + 0x10], 0x64
jl 0x41c304
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov edi, 2
mov ebp, dword [esi + 0xc]
movzx ecx, word [esi + 8]
mov edx, dword [ecx + ebp + 8]
lea eax, [ebp + 8]
mov ebx, edx
shr ebx, 0x10
add bx, 0xfeff
mov dword [esp + 0x28], edx
cmp esi, dword [ebp + 4]
mov edx, dword [esi + 8]
mov word [esp + 0x2a], bx
mov ebx, dword [ebp]
mov ebp, dword [ecx + eax + 4]
sete byte [esp + 0x17]
cmp edx, ebx
sete bl
cmp esi, ebp
jne 0x41c34a
cmp edx, dword [esp + 0x28]
jne 0x41c34a
mov dl, 1
jmp 0x41c34c
xor dl, dl
test bl, bl
je 0x41c43d
mov bl, byte [esp + 0x17]
test bl, bl
je 0x41c423
test dl, dl
movzx edx, word [esi + 0xa]
je 0x41c3c3
movzx ebx, byte [eax + 3]
push ebx
movzx ebx, byte [eax + 2]
push ebx
movzx ebx, byte [eax + 1]
push ebx
movzx ebx, byte [eax]
push ebx
mov ebx, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x10]
push ebx
mov ebx, dword [eax]
push ebx
mov ebx, edx
shr ebx, 8
push ebx
and edx, 0xff
push edx
push ecx
push eax
mov eax, dword [esi + 0x18]
push eax
mov ecx, 0x1000
push str.____case__8u:____MemInfoptr_0x_08X___size__d___tag___02X:_02X____vft_0x_08X_Location_s___d_linesDump__02X___02X___02X___02X_ExtraMsg_none__r_n
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x6c]
push edx
call fcn.0042cbe6
add edi, eax
mov eax, dword [esp + 0x4c]
add esp, 0x3c
inc eax
mov dword [esp + 0x10], eax
jmp 0x41c4ce
push str.suspicious_buffer_overrun_object
movzx ebx, byte [eax + 3]
push ebx
movzx ebx, byte [eax + 2]
push ebx
movzx ebx, byte [eax + 1]
push ebx
movzx ebx, byte [eax]
push ebx
mov ebx, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x10]
push ebx
mov ebx, dword [eax]
push ebx
mov ebx, edx
shr ebx, 8
push ebx
and edx, 0xff
push edx
push ecx
push eax
mov eax, dword [esi + 0x18]
push eax
mov ecx, 0x1000
push str.____case__8u:____MemInfoptr_0x_08X___size__d___tag___02X:_02X____vft_0x_08X_Location_s___d_linesDump__02X___02X___02X___02X_ExtraMsg_s_r_n
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x70]
push edx
call fcn.0042cbe6
add edi, eax
mov eax, dword [esp + 0x50]
add esp, 0x40
inc eax
mov dword [esp + 0x10], eax
jmp 0x41c4ce
movzx ebx, byte [eax + 3]
test dl, dl
movzx edx, word [esi + 0xa]
je 0x41c436
push str.corrupted
jmp 0x41c485
push str.corrupted__overruned
jmp 0x41c3cc
mov bl, byte [esp + 0x17]
test bl, bl
je 0x41c46d
test dl, dl
je 0x41c457
movzx edx, word [esi + 0xa]
push str.may_be_overruned_by_previous_token
jmp 0x41c3c8
test bl, bl
je 0x41c46d
test dl, dl
jne 0x41c4ce
movzx edx, word [esi + 0xa]
push str.may_be_overruned_by_previous_token_and_overruned
jmp 0x41c3c8
movzx ebx, byte [eax + 3]
test dl, dl
movzx edx, word [esi + 0xa]
je 0x41c480
push str.may_be_overruned_by_previous_token
jmp 0x41c485
push str.may_be_overruned_by_previous_token__fully_overruned
push ebx
movzx ebx, byte [eax + 2]
push ebx
movzx ebx, byte [eax + 1]
push ebx
movzx ebx, byte [eax]
push ebx
mov ebx, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x10]
push ebx
mov ebx, dword [eax]
push ebx
mov ebx, edx
shr ebx, 8
push ebx
and edx, 0xff
push edx
push ecx
push eax
mov eax, dword [esi + 0x18]
push eax
mov ecx, 0x1000
sub ecx, edi
push str.____case__8u:_MemInfoptr_0x_08X___size__d___tag___02X:_02X____vft_0x_08X_Location_s___d_linesDump__02X___02X___02X___02X_ExtraMsg_s_r_n
lea edx, [esp + edi + 0x6c]
push ecx
push edx
call fcn.0042cbe6
add esp, 0x40
add edi, eax
mov ebp, dword [esp + 0x30]
push 0
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x40]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esi]
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp esi, eax
mov bl, 0x2f
jne 0x41c2f0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add ecx, 0x3c
add eax, 0x3c
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x41c2e1
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1030]
pop ebp
pop edi
mov al, 1
pop esi
call fcn.0042cc6e
add esp, 0x1028
ret 4