Function at 0x42fa40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43af10
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x448ad0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebp
push esi
push edi
mov eax, dword [0x448ad0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x10], eax
test ebp, ebp
jne 0x42fa89
lea ebp, [esp + 0x14]
cmp byte [esp + 0x70], 0
mov edx, dword [esi]
mov ecx, esi
je 0x42faba
mov eax, dword [edx + 0x84]
call eax
test al, al
jne 0x42fac4
push 0
push 0
push 0x43cc70
push esi
call fcn.0042fa40
mov edx, dword [esi]
add esp, 0x10
push 1
mov ecx, esi
jmp 0x42fabc
push 0
mov eax, dword [edx + 0x88]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x5c]
mov ecx, esi
call eax
cmp eax, 2
jne 0x42faeb
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push esi
call fcn.0042b610
add esp, 0x10
jmp 0x42fd0a
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
test eax, eax
je 0x42fd0a
lea ecx, [esp + 0x18]
call fcn.00428f60
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x20]
call fcn.0042ad10
mov edi, eax
test edi, edi
jge 0x42fb63
push 0
push 0
push str.PrintfV_failed_while_trying_to_write_message_to_debug_log:
push esi
call fcn.0042b610
mov ecx, dword [esp + 0x20]
push 0
push ebp
push ecx
push esi
call fcn.0042b610
mov edx, dword [esi]
mov eax, dword [edx + 0x6c]
add esp, 0x20
mov ecx, esi
call eax
test eax, eax
jne 0x42fb61
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
push 0xfffffffffffffff6
mov ecx, esi
call eax
mov ecx, esi
call fcn.0042f9d0
test edi, edi
jle 0x42fb99
lea ebp, [edi - 1]
cmp ebp, dword [esp + 0x2c]
jbe 0x42fb73
call fcn.004207d2
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x42fb82
lea eax, [esp + 0x1c]
cmp word [eax + ebp*2], 0xd
jne 0x42fb99
push 0x441a28
lea ecx, [esp + 0x1c]
call fcn.0042a930
jmp 0x42fbfc
cmp edi, 1
jle 0x42fbd7
lea ecx, [edi - 2]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00427540
cmp word [eax], 0xd
je 0x42fbd7
lea ebp, [edi - 1]
push ebp
lea ecx, [esp + 0x1c]
call fcn.00427540
cmp word [eax], 0xa
jne 0x42fbd7
push 0x441bb4
push 1
push ebp
lea ecx, [esp + 0x24]
call fcn.0042c880
jmp 0x42fbfc
test edi, edi
je 0x42fbec
dec edi
push edi
lea ecx, [esp + 0x1c]
call fcn.00427540
cmp word [eax], 0xa
je 0x42fbfc
push 2
push 0x441bb4
lea ecx, [esp + 0x20]
call fcn.00429dc0
lea ecx, [esp + 0x34]
call fcn.00428f60
mov byte [esp + 0x5c], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x44]
mov ecx, esi
call eax
test al, al
jne 0x42fc24
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
test al, al
je 0x42fc4e
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 0
mov ecx, esi
call eax
mov ecx, esi
call fcn.0042b2f0
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x3c]
push str.__f_
push ecx
call fcn.0042b050
add esp, 0x10
cmp byte [esp + 0x70], 0
je 0x42fc65
push 2
push 0x441a2c
lea ecx, [esp + 0x3c]
call fcn.00429dc0
cmp dword [esp + 0x48], 0
je 0x42fc80
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x3c]
push edx
push 0
lea ecx, [esp + 0x28]
call fcn.0042c040
mov eax, dword [esp + 0x1c]
mov edi, 8
mov dword [esp + 0x14], 0
cmp dword [esp + 0x30], edi
jae 0x42fc9b
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edx + edx]
mov edx, dword [esi]
push ecx
push eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42fceb
push eax
push eax
push str.WriteFile_failed_while_trying_to_write_message_to_debug_log:
push esi
call fcn.0042b610
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esp + 0x30], edi
jae 0x42fcdd
lea eax, [esp + 0x1c]
push 0
push 0
push eax
push esi
call fcn.0042b610
add esp, 0x10
mov byte [esp + 0x5c], 0
lea ecx, [esp + 0x34]
call fcn.00428ef0
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00428ef0
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + 0xb8]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041d78c
add esp, 0x50
ret