Function at 0x434cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7a68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x52ad60]
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 ebx, ecx
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov dword [ebp - 4], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x434e96
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, str.F_i1ed_to_open_file:
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x434d46
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x434d53
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.00404ab0
jmp 0x434d53
push str.F_i1ed_to_open_file:
lea ecx, [ebp - 0x18]
call fcn.00404510
push str.WriteToFi1e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00403720
mov byte [ebp - 4], 3
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00431540
add esp, 4
push ebx
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00431540
add esp, 4
mov esi, eax
push str.GlobalLog
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00403720
push 2
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x52f7a4
mov byte [ebp - 4], 7
call fcn.004018e0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x434df2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434e12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434e32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434e4f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434e6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434e8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x4351b4
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x434ecc
push 0
lea ecx, [ebp + 8]
call fcn.0040c7b0
mov eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
jne 0x43501e
push str.Fai1ed_to_write_to_file:
lea ecx, [ebp - 0x18]
call fcn.004037d0
push str.WriteToFi1e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.00403720
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.004315e0
mov esi, eax
mov byte [ebp - 4], 0xa
mov edx, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.00431540
add esp, 4
push esi
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.00431540
add esp, 4
push 2
mov edx, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
call fcn.0040c8d0
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or esi, 0xffffffff
add esp, 4
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x434f92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434fb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434fd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x434ff2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435012
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
jmp 0x435180
push str._6ytes_to_fi1e
lea ecx, [ebp - 0x24]
call fcn.004037d0
push str.Wrote
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.004037d0
push str.WriteToFile
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call fcn.00403720
mov byte [ebp - 4], 0x10
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.00431540
add esp, 4
mov byte [ebp - 4], 0x12
push dword [ebp - 0x14]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.004314a0
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x13
call fcn.00431540
add esp, 4
push 0
mov edx, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x14
call fcn.0040c8d0
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or esi, 0xffffffff
add esp, 4
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4350d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4350f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435119
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435139
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435159
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435179
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435199
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4351d5
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004b3a11
mov esp, ebp
pop ebp
ret