Function at 0x48b4b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [ebp + 0xc]
mov esi, ecx
test ebx, ebx
je 0x48b4da
push edx
call sub.KERNEL32.dll_GetStdHandle
test eax, eax
je 0x48b4e6
mov edi, eax
cmp eax, 0xffffffff
jne 0x48b4f9
call sub.KERNEL32.dll_GetLastError
jmp 0x48b4eb
mov dword [esi + 4], 0
mov byte [esi], 4
jmp 0x48b4f1
mov eax, 6
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push edi
call sub.KERNEL32.dll_GetConsoleMode
test eax, eax
je 0x48b566
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ecx + 4]
test eax, eax
je 0x48b585
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp al, 4
jae 0x48b6e4
movzx ecx, byte [ecx]
mov edx, ecx
and dl, 0xc0
cmp dl, 0x80
jne 0x48b5e2
mov byte [ebx + eax], cl
mov edx, ebx
movzx ecx, byte [ebx + 4]
inc cl
mov byte [ebx + 4], cl
movzx eax, byte [ebx]
movzx ebx, byte [eax + 0x583600]
cmp cl, bl
mov dword [ebp - 0x38], ebx
jae 0x48b5e8
mov dword [esi + 4], 1
mov byte [esi], 4
jmp 0x48b4f1
mov edx, edi
lea ecx, [ebp - 0x28]
push ebx
push dword [ebp + 8]
call fcn.0048b750
add esp, 8
movsd xmm0, qword [ebp - 0x28]
movsd qword [esi], xmm0
jmp 0x48b4f1
cmp ebx, 0x1000
mov eax, 0x1000
cmovb eax, ebx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
push eax
call fcn.0046eb40
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x48b61c
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x48b635
xor ecx, ecx
push 0x58375c
push ebx
push dword [ebp + 8]
call fcn.0048bbd0
add esp, 0xc
mov ebx, edx
lea ecx, [ebp - 0x28]
mov edx, eax
push ebx
call fcn.0046eb40
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.0048bc00
mov ebx, edx
jmp 0x48b622
mov byte [ebx + 4], 0
jmp 0x48b60d
movzx eax, cl
cmp cl, 5
jae 0x48b714
lea ecx, [ebp - 0x34]
push eax
call fcn.0046eb40
add esp, 4
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x34], 0
mov byte [eax + 4], 0
je 0x48b664
mov byte [esi], 2
mov dword [esi + 4], 0x583750
jmp 0x48b4f1
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov ecx, esi
mov edx, edi
push ebx
push eax
call fcn.0048b820
add esp, 8
jmp 0x48b4f1
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x583600]
cmp ecx, 2
jb 0x48b6b8
cmp ecx, ebx
jbe 0x48b6b8
mov ecx, dword [ebp + 0x10]
mov dword [esi + 4], 1
mov byte [ecx], al
mov byte [ecx + 4], 1
mov cl, 4
mov byte [esi], cl
jmp 0x48b4f1
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp ecx, ebx
mov dword [ebp - 0x10], ecx
jne 0x48b725
lea ecx, [ebp - 0x28]
mov edx, edi
push ebx
push eax
call fcn.0048b820
add esp, 8
movzx eax, byte [ebp - 0x28]
cmp al, 4
jne 0x48b6c8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], ebx
cmp eax, ebx
mov dword [ebp - 0x3c], eax
je 0x48b55a
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x10]
push 0x5837f0
lea eax, [ebp - 0x28]
push eax
call fcn.0048ad60
mov al, 2
mov dword [esi + 4], 0x583750
mov byte [esi], al
jmp 0x48b4f1
movzx ecx, byte [ebp - 0x25]
movzx edi, word [ebp - 0x27]
mov edx, dword [ebp - 0x24]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x48b4f1
mov dword [ebp - 0x28], 0x5837b8
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], str.vmesh_src_char_anim.rs
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x28]
mov edx, 0x5837c0
call fcn.004696f0
mov ecx, eax
mov edx, 4
push 0x5837d0
call fcn.0046a7e0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x10]
push 0x5837e0
lea eax, [ebp - 0x28]
push eax
call fcn.0048ad60
mov esi, eax
push edi
call sub.KERNEL32.dll_CloseHandle
push esi
call fcn.00567e20
nop