Function at 0x436c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b0cd
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x49f080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
cmp dword [edi + 0x14], 7
jbe 0x436cb4
mov eax, dword [edi]
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 0x1c], edx
cmp edx, 0xffffffff
jne 0x436e7a
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4a1990]
cmp eax, dword [ecx + 4]
jle 0x436d24
push 0x4a1990
call fcn.00443b49
add esp, 4
cmp dword [0x4a1990], 0xffffffff
jne 0x436d24
push 0x46b8f0
mov dword [0x4a19c4], 0
call fcn.00443861
push 0x4a1990
call fcn.00443af8
add esp, 8
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push str.open_file_error_msg
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x34], xmm0
call fcn.00404d90
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x4a19a0
call fcn.00432fb0
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x436d67
mov ecx, dword [eax]
push dword [eax + 0x10]
mov edx, edi
push ecx
lea ecx, [ebp - 0x64]
call fcn.00418030
mov esi, eax
push 0xb8
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00445500
add esp, 0x14
lea ecx, [ebp - 0x134]
push 0x49fb3c
call fcn.00408b20
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], 2
jbe 0x436db3
mov esi, dword [esi]
push eax
mov edx, esi
lea ecx, [ebp - 0x124]
call fcn.00422530
lea eax, [ebp - 0x124]
push eax
call fcn.00417ed0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x436dea
lea eax, [ebp - 0x134]
push eax
call fcn.00417870
lea ecx, [ebp - 0x134]
call fcn.00408c60
mov ecx, dword [ebp - 0x50]
cmp ecx, 7
jbe 0x436e2f
mov edx, dword [ebp - 0x64]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x436e25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437060
push ecx
push edx
call fcn.00443876
add esp, 8
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp ecx, 0xf
jbe 0x43703d
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x437033
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437060
jmp 0x437033
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea esi, [ebp - 0x14]
push 0
push esi
sub eax, ecx
mov dword [ebp - 0x14], 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x437041
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4a1990]
cmp eax, dword [ecx + 4]
jle 0x436ef2
push 0x4a1990
call fcn.00443b49
add esp, 4
cmp dword [0x4a1990], 0xffffffff
jne 0x436ef2
push 0x46b8f0
mov dword [0x4a19c4], esi
call fcn.00443861
push 0x4a1990
call fcn.00443af8
add esp, 8
push 0x14
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push str.write_file_error_msg
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x4c], xmm0
call fcn.00404d90
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 4
push eax
mov ecx, 0x4a19a0
call fcn.00432fb0
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x436f35
mov ecx, dword [eax]
push dword [eax + 0x10]
mov edx, edi
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00418030
mov esi, eax
push 0xb8
lea eax, [ebp - 0x1ec]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.00445500
add esp, 0x14
lea ecx, [ebp - 0x1ec]
push 0x49fb3c
call fcn.00408b20
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], 8
jbe 0x436f81
mov esi, dword [esi]
push eax
mov edx, esi
lea ecx, [ebp - 0x1dc]
call fcn.00422530
lea eax, [ebp - 0x1dc]
push eax
call fcn.00417ed0
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x13c]
test ecx, ecx
je 0x436fb8
lea eax, [ebp - 0x1ec]
push eax
call fcn.00417870
lea ecx, [ebp - 0x1ec]
call fcn.00408c60
mov ecx, dword [ebp - 0x68]
cmp ecx, 7
jbe 0x436ff9
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x436fef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437065
push ecx
push edx
call fcn.00443876
add esp, 8
mov ecx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
cmp ecx, 0xf
jbe 0x43703d
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x437033
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437065
push ecx
push edx
call fcn.00443876
add esp, 8
xor al, al
jmp 0x437043
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004435e2
mov esp, ebp
pop ebp
ret 8
call fcn.004483fa
call fcn.004483fa
int3