Function at 0x42e32c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], edi
mov edi, eax
mov dword [ebp - 4], ebx
mov ebx, ecx
mov dword [ebp - 0xc], esi
mov esi, edx
test edi, edi
je 0x42e81e
movzx eax, byte [edi + 0x170]
and eax, 0x80
mov ecx, dword [edi + 0xe4]
shr eax, 7
movzx edx, byte [edi + 0x171]
mov dword [ebp - 0x10], ecx
and edx, 1
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], edx
mov ecx, dword [edi + 0x140]
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], eax
mov dword [edi + 0xf0], eax
test ebx, ebx
jne 0x42e437
test edi, edi
je 0x42e724
test byte [edi + 0x16d], 4
jne 0x42e3bc
xor eax, eax
mov esi, 1
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], eax
jmp 0x42e715
mov ebx, dword [edi + 0x40]
lea eax, [ebp - 0x14]
push 0
sub ebx, dword [edi + 0x38]
push eax
push ebx
push dword [edi + 0x38]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, dword [edi + 0x38]
test esi, esi
mov edx, dword [edi + 0xf8]
mov dword [edi + 0x3c], eax
jne 0x42e3ec
mov esi, 0xffffffff
xor ecx, ecx
add edx, eax
mov eax, ebx
mov dword [edi + 0x44], edx
cdq
mov eax, dword [edi + 0xc0]
add ebx, eax
mov dword [edi + 0x40], ecx
adc edx, dword [edi + 0xc4]
and byte [edi + 0x16d], 0xfb
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], edx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], edx
mov dword [edi + 0xa8], ecx
mov dword [edi + 0xac], ecx
jmp 0x42e715
test edi, edi
je 0x42e4af
mov eax, dword [edi + 0x40]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x42e4af
cmp esi, dword [ebp - 0x2c]
je 0x42e4af
mov edx, dword [edi + 0x38]
sub dword [ebp - 0x2c], edx
je 0x42e4af
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
push edx
push dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x20]
test eax, eax
jne 0x42e487
xor eax, eax
mov esi, 0xffffffff
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], eax
jmp 0x42e715
mov eax, dword [ebp - 0x2c]
cdq
add eax, dword [edi + 0xc0]
mov dword [edi + 0xc0], eax
adc edx, dword [edi + 0xc4]
mov dword [edi + 0xc4], edx
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], edx
cmp dword [0x6e39a0], 0
je 0x42e563
test ecx, ecx
jne 0x42e4ca
mov esi, 0xffffffff
jmp 0x42e548
cmp dword [ebp - 0x1c], 0
je 0x42e4d9
cmp ecx, 0xfffffffa
je 0x42e7cf
cmp ecx, 2
je 0x42e4e3
cmp ecx, 1
jne 0x42e503
mov dword [ebp - 0x20], ecx
call fcn.004bdc90
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
cmp dword [0x6e39a0], 0
je 0x42e52e
mov dword [ebp - 0x28], 1
jmp 0x42e50b
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x1c], 0
je 0x42e528
cmp dword [ebp - 0x24], 0
je 0x42e528
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], ecx
call fcn.004bda00
mov ecx, dword [ebp - 0x20]
add esp, 4
cmp dword [ebp - 0x28], 0
je 0x42e563
push 0
push dword [ebp - 0x2c]
push ebx
push esi
call fcn.004bda60
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x42e548
mov esi, 0xffffffff
test edi, edi
je 0x42e715
xor edx, edx
mov dword [edi + 0xa8], edx
mov dword [edi + 0xac], edx
jmp 0x42e715
test edi, edi
je 0x42e5db
test byte [edi + 0x171], 0x40
jne 0x42e578
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x24], eax
jmp 0x42e5c4
test byte [edi + 0x16f], 1
je 0x42e589
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x24], eax
jmp 0x42e5c4
mov edx, dword [edi + 0x38]
cmp esi, edx
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
je 0x42e59e
cmp esi, dword [ebp - 0x24]
jne 0x42e5d1
mov dword [ebp - 0x1c], ebx
mov ebx, dword [edi + 0xf8]
mov edx, dword [edi + 0x3c]
mov eax, dword [ebp - 0x28]
add eax, dword [edi + 0xec]
mov dword [ebp - 0x2c], ebx
lea edx, [edx + ebx*2]
mov ebx, dword [ebp - 0x1c]
cmp eax, edx
ja 0x42e6e1
cmp esi, dword [ebp - 0x24]
jne 0x42e5d1
add ebx, dword [ebp - 0x24]
mov esi, dword [edi + 0x38]
sub ebx, esi
mov eax, dword [edi + 0x13c]
test eax, eax
jne 0x42e5e0
mov eax, 0x20000
cmp ebx, eax
jbe 0x42e648
mov edx, ebx
test edi, edi
je 0x42e5f4
mov eax, dword [edi + 0x13c]
test eax, eax
jne 0x42e5f9
mov eax, 0x20000
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], ebx
mov ebx, eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp esi, eax
je 0x42e774
push 0
lea edx, [ebp - 0x14]
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x42e72b
mov ebx, dword [ebp - 0x1c]
mov esi, eax
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
jmp 0x42e678
mov dword [ebp - 0x20], ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
je 0x42e7e1
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x20]
mov esi, eax
test esi, esi
jne 0x42e68a
cmp ecx, 1
je 0x42e7b9
mov esi, 0xffffffff
test edi, edi
je 0x42e715
mov edx, dword [edi + 0x38]
mov eax, ebx
add edx, dword [edi + 0xf8]
xor ecx, ecx
mov dword [edi + 0x44], edx
cdq
mov eax, dword [edi + 0xc0]
add ebx, eax
mov dword [edi + 0x40], ecx
adc edx, dword [edi + 0xc4]
and byte [edi + 0x16d], 0xfb
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xc4], edx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xbc], edx
mov dword [edi + 0xa8], ecx
mov dword [edi + 0xac], ecx
jmp 0x42e715
mov eax, ebx
add esi, ebx
cdq
add dword [edi + 0xb8], ebx
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 0x40], esi
adc dword [edi + 0xbc], edx
xor ebx, ebx
mov esi, 1
or byte [edi + 0x16d], 4
add dword [edi + 0x44], ecx
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xac], ebx
mov eax, esi
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x42e715
mov edx, dword [ebp - 0x14]
sub dword [ebp - 0x28], edx
add edi, edx
cmp dword [ebp - 0x18], 0
je 0x42e746
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x13c]
test ecx, ecx
jne 0x42e74b
mov ecx, 0x20000
cmp ecx, dword [ebp - 0x28]
jb 0x42e759
mov ebx, dword [ebp - 0x28]
test ebx, ebx
jne 0x42e75f
jmp 0x42e767
cmp dword [ebp - 0x28], 0
je 0x42e767
test edx, edx
ja 0x42e613
mov ebx, dword [ebp - 0x1c]
mov esi, eax
mov edi, dword [ebp - 0x18]
jmp 0x42e68a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x42e623
push ebx
push edi
push 1
call fcn.0046f560
add esp, 0xc
mov edx, eax
cmp edx, 0xffffffff
je 0x42e7a1
mov dword [ebp - 0x14], edx
mov eax, 1
jmp 0x42e72e
push 0
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x42e632
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
jne 0x42e685
xor esi, esi
jmp 0x42e68a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
jmp 0x42e511
push dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov ecx, dword [ebp - 0x20]
cmp eax, 2
jne 0x42e65f
push ebx
push esi
push 1
mov dword [ebp - 0x20], ecx
call fcn.0046f560
mov ecx, dword [ebp - 0x20]
add esp, 0xc
cmp eax, 0xffffffff
je 0x42e65f
mov esi, 1
jmp 0x42e68a
cmp dword [0x6e39a0], 0
jne 0x42e847
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x10], eax
mov eax, dword [0x6e39a0]
mov ecx, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
jmp 0x42e38b
call fcn.004bdc90
jmp 0x42e82f