Function at 0x458a5b
Capabilities:
Write file on windows

Disassembly:
push 0x18c
mov eax, 0x4693cf
call fcn.0045f3fe
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
xor ebx, ebx
push 2
mov dword [ebp - 0x178], ecx
pop edi
cmp eax, ebx
jne 0x458b3b
push dword [0x47dc2c]
lea ecx, [ebp - 0x34]
call fcn.004610c9
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.004556fe
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004610c9
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x198]
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
push ebx
push 1
call fcn.004610c9
cmp dword [esi + 0x14], ebx
je 0x458e8f
lea ecx, [ebp - 0x50]
call fcn.00411d68
mov dword [ebp - 4], 3
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x178]
lea eax, [ebp - 0x50]
push eax
call fcn.00457ab5
test al, al
je 0x458e80
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x458b0e
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x170]
call fcn.004610c9
mov byte [ebp - 4], 4
push dword [ebp - 0x170]
lea ecx, [ebp - 0x6c]
call fcn.004610c9
mov byte [ebp - 4], 5
cmp dword [esi + 0x18], 8
jb 0x458b81
mov esi, dword [esi + 4]
jmp 0x458b84
cmp dword [esi + 0x18], 8
jb 0x458b46
mov eax, dword [esi + 4]
jmp 0x458b49
lea eax, [esi + 4]
push ebx
push eax
call fcn.004610c9
pop ecx
pop ecx
test eax, eax
je 0x458ad0
push esi
lea eax, [ebp - 0x198]
push eax
call fcn.00455a34
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.004610c9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
jmp 0x458ac8
add esi, 4
push ebx
push 0x80
push edi
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x458e53
mov esi, dword [sym.imp.kernel32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x17c]
push eax
push 6
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x17c], ebx
mov byte [ebp - 0x18], 0xff
mov byte [ebp - 0x17], 0xfe
mov byte [ebp - 0x16], 0xd
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xa
mov byte [ebp - 0x13], bl
call esi
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x174], ebx
jae 0x458be9
lea eax, [ebp - 0x68]
push ebx
lea ecx, [ebp - 0x174]
push ecx
mov ecx, dword [ebp - 0x58]
add ecx, ecx
push ecx
push eax
push edi
call esi
test eax, eax
je 0x458e4c
cmp dword [ebp - 0x174], ebx
je 0x458e4c
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.004610c9
mov esi, dword [eax + 0x40]
cmp esi, ebx
je 0x458e0c
lea ecx, [ebp - 0x34]
call fcn.00411d68
mov byte [ebp - 4], 6
push 0x4064a0
push esi
call fcn.004610c9
mov edi, dword [ebp - 0x178]
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push 0xd
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458c71
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458c62
lea eax, [ebp - 0x30]
push eax
push 0x406490
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0xe
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458c9d
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458c8e
lea eax, [ebp - 0x30]
push eax
push 0x406480
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0xf
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458cc9
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458cba
lea eax, [ebp - 0x30]
push eax
push 0x406470
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x10
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458cf5
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458ce6
lea eax, [ebp - 0x30]
push eax
push 0x406460
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x11
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458d21
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458d12
lea eax, [ebp - 0x30]
push eax
push 0x406450
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x12
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458d4d
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458d3e
lea eax, [ebp - 0x30]
push eax
push 0x406440
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x13
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458d79
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458d6a
lea eax, [ebp - 0x30]
push eax
push 0x406430
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x14
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458da5
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458d96
lea eax, [ebp - 0x30]
push eax
push 0x406420
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x15
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458dd1
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458dc2
lea eax, [ebp - 0x30]
push eax
push 0x406410
push esi
call fcn.004610c9
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x16
mov ecx, edi
call fcn.004610c9
test al, al
je 0x458dfd
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458dee
lea eax, [ebp - 0x30]
push eax
push 0x4063fc
push esi
call fcn.004610c9
add esp, 0xc
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004610c9
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.004610c9
mov byte [ebp - 4], 3
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x170], eax
je 0x458e39
push dword [ebp - 0x170]
call fcn.0043e7ba
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004610c9
mov al, 1
jmp 0x458e91
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.004610c9
mov byte [ebp - 4], 3
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x170], eax
je 0x458e80
push dword [ebp - 0x170]
call fcn.0043e7ba
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004610c9
xor al, al
call fcn.0045f490
ret 8