Function at 0x458b90
Capabilities:
Write file on windows

Disassembly:
push 0x18c
mov eax, 0x469801
call fcn.0045f4d4
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 0x458c70
push dword [0x47dc2c]
lea ecx, [ebp - 0x34]
call fcn.004132cd
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00455831
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00411d93
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x198]
call fcn.00411dad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
push ebx
push 1
call fcn.00411dad
cmp dword [esi + 0x14], ebx
je 0x458fc4
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.00457bea
test al, al
je 0x458fb5
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x458c43
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x170]
call fcn.0045179a
mov byte [ebp - 4], 4
push dword [ebp - 0x170]
lea ecx, [ebp - 0x6c]
call fcn.004132cd
mov byte [ebp - 4], 5
cmp dword [esi + 0x18], 8
jb 0x458cb6
mov esi, dword [esi + 4]
jmp 0x458cb9
cmp dword [esi + 0x18], 8
jb 0x458c7b
mov eax, dword [esi + 4]
jmp 0x458c7e
lea eax, [esi + 4]
push ebx
push eax
call fcn.0043f6de
pop ecx
pop ecx
test eax, eax
je 0x458c05
push esi
lea eax, [ebp - 0x198]
push eax
call fcn.00455b67
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.00411d93
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
jmp 0x458bfd
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 0x458f88
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 0x458d1e
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 0x458f81
cmp dword [ebp - 0x174], ebx
je 0x458f81
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0044e701
mov esi, dword [eax + 0x40]
cmp esi, ebx
je 0x458f41
lea ecx, [ebp - 0x34]
call fcn.00411d68
mov byte [ebp - 4], 6
push 0x4064a0
push esi
call fcn.004555c6
mov edi, dword [ebp - 0x178]
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push 0xd
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458da6
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458d97
lea eax, [ebp - 0x30]
push eax
push 0x406490
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0xe
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458dd2
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458dc3
lea eax, [ebp - 0x30]
push eax
push 0x406480
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0xf
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458dfe
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458def
lea eax, [ebp - 0x30]
push eax
push 0x406470
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x10
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458e2a
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458e1b
lea eax, [ebp - 0x30]
push eax
push 0x406460
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x11
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458e56
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458e47
lea eax, [ebp - 0x30]
push eax
push 0x406450
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x12
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458e82
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458e73
lea eax, [ebp - 0x30]
push eax
push 0x406440
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x13
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458eae
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458e9f
lea eax, [ebp - 0x30]
push eax
push 0x406430
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x14
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458eda
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458ecb
lea eax, [ebp - 0x30]
push eax
push 0x406420
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x15
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458f06
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458ef7
lea eax, [ebp - 0x30]
push eax
push 0x406410
push esi
call fcn.004555c6
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push 0x16
mov ecx, edi
call fcn.00457a88
test al, al
je 0x458f32
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x458f23
lea eax, [ebp - 0x30]
push eax
push 0x4063fc
push esi
call fcn.004555c6
add esp, 0xc
mov byte [ebp - 4], 5
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00411dad
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.00411dad
mov byte [ebp - 4], 3
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x170], eax
je 0x458f6e
push dword [ebp - 0x170]
call fcn.0043e815
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00411dad
mov al, 1
jmp 0x458fc6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.00411dad
mov byte [ebp - 4], 3
lea eax, [ebp - 0x16c]
cmp dword [ebp - 0x170], eax
je 0x458fb5
push dword [ebp - 0x170]
call fcn.0043e815
pop ecx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00411dad
xor al, al
call fcn.0045f566
ret 8