Function at 0x4314b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2a8
mov eax, dword [0x4d3100]
xor eax, esp
mov dword [esp + 0x2a4], eax
push esi
xor esi, esi
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [0x57314c]
mov dword [esp + 0x2c], esi
lea eax, [esi + 1]
test edi, edi
je 0x43188c
cmp dword [edi + 0x10], esi
jne 0x43188c
lea edx, [esp + 0x1a0]
mov ecx, str.capture_copyright
call fcn.00449ba0
test eax, eax
jne 0x4316d9
mov edx, dword [edi + 4]
mov ecx, dword [edi]
push eax
push 0x20
call fcn.00486160
mov ecx, dword [edi]
lea edx, [esp + 0x20]
add esp, 8
mov dword [esp + 0x2c], eax
cmp dword [edi + 0x10], 0
mov esi, eax
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 4]
push eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], ecx
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], 0
push esi
je 0x43157a
cmp dword [esi + 0x10], 0
je 0x431573
call fcn.00487a90
jmp 0x43158c
call fcn.00487be0
jmp 0x43158c
cmp dword [esi + 0x14], 8
jne 0x431587
call fcn.00487ca0
jmp 0x43158c
call fcn.00487910
add esp, 8
lea ecx, [esp + 0x1a0]
call fcn.0044a4c0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x98]
push 0
push eax
push 0
lea eax, [esp + 0x1ac]
push 0
push eax
call fcn.00494895
lea edi, [esp + 0xac]
add esp, 0x14
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4315c5
mov ax, word [0x4c3dd4]
lea edx, [esp + 0x98]
mov ecx, edx
mov word [edi], ax
call fcn.00449ba0
test eax, eax
jne 0x431600
lea ecx, [esp + 0x98]
call fcn.0044a4c0
mov dword [esp + 0xc], eax
cmp dword [eax + 0x10], 0
jne 0x431606
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push esi
lea edx, [esp + 0x20]
mov ecx, edi
call fcn.004864a0
add esp, 8
test eax, eax
je 0x431658
xor edx, edx
mov ecx, edi
call fcn.00486020
mov edi, 1
test esi, esi
je 0x43188a
cmp dword [esi + 0xc], 0
jne 0x43188a
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
test ecx, ecx
je 0x431855
mov dword [ecx + 0x38], eax
jmp 0x43185a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4316ba
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x14]
cmp eax, 8
je 0x431695
cmp eax, 0x20
jne 0x4316ab
push 0
lea eax, [esp + 0x38]
mov ecx, edi
push eax
push esi
lea edx, [esp + 0x24]
call fcn.00488600
add esp, 0xc
xor edx, edx
mov ecx, edi
call fcn.00486020
mov ecx, dword [esp + 0xc]
jmp 0x4316d0
push 0
lea eax, [esp + 0x38]
mov ecx, edi
push eax
push esi
lea edx, [esp + 0x24]
call fcn.00488530
add esp, 0xc
xor edx, edx
mov ecx, edi
call fcn.00486020
mov ecx, dword [esp + 0xc]
jmp 0x4316d0
lea eax, [esp + 0x34]
mov ecx, edi
push eax
push esi
lea edx, [esp + 0x20]
call fcn.00487d30
add esp, 8
mov ecx, edi
xor edx, edx
call fcn.00486020
mov edi, esi
mov eax, dword [edi + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], eax
call fcn.0047fa50
mov ecx, dword [esp + 0x20]
xorps xmm0, xmm0
mov edx, dword [esp + 0x24]
mov eax, ecx
shl eax, 4
add eax, 3
movq qword [esp + 0x50], xmm0
shr eax, 2
mov dword [esp + 0x30], eax
mov eax, 0x4d42
mov word [esp + 0x50], ax
mov eax, edx
imul eax, dword [esp + 0x30]
mov dword [esp + 0x58], 0
mov word [esp + 0x5c], 0
mov dword [esp + 0x5a], 0x36
mov dword [esp + 0x14], edx
add eax, 0x38
mov dword [esp + 0x52], eax
mov eax, dword [edi + 0x24]
push 0x4c3dd8
push dword [esp + 0x14]
movdqu xmm1, xmmword [eax]
movdqa xmmword [esp + 0x68], xmm1
movdqu xmm0, xmmword [eax + 0x10]
psrldq xmm1, 8
movdqu xmmword [esp + 0x78], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, edx
cdq
xor eax, edx
movq qword [esp + 0x88], xmm0
sub eax, edx
movd dword [esp + 0x54], xmm1
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
call fcn.00494396
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x43162b
push eax
push 1
lea eax, [esp + 0x58]
push 0xe
push eax
call fcn.0049528d
push dword [esp + 0x38]
lea eax, [esp + 0x74]
push 1
push 0x28
push eax
call fcn.0049528d
mov ecx, dword [esp + 0x44]
add esp, 0x20
test ecx, ecx
jle 0x431831
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
imul edx, esi
neg esi
mov dword [esp + 0x48], esi
lea esi, [ecx - 1]
add esi, dword [esp + 0x1c]
shl eax, 2
imul esi, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], edx
push dword [esp + 0x28]
cmp dword [esp + 0x50], 0
mov ecx, esi
mov eax, dword [edi + 0x2c]
cmovg ecx, edx
add eax, dword [esp + 0x48]
push 1
push dword [esp + 0x38]
add eax, ecx
push eax
call fcn.0049528d
mov edx, dword [esp + 0x20]
add esp, 0x10
add edx, dword [esp + 0xc]
add esi, dword [esp + 0x48]
dec dword [esp + 0x14]
mov dword [esp + 0x10], edx
jne 0x4317f1
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push edi
push 0
call fcn.00495033
push edi
push 0
call fcn.00495033
push edi
call fcn.00494b54
add esp, 0x14
xor edi, edi
jmp 0x431630
mov dword [0x53c124], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x431867
mov eax, dword [esi + 0x34]
mov dword [ecx + 0x34], eax
call dword [sym.imp.GDI32.dll_GdiFlush]
push dword [esi + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x24]
call fcn.00494034
add esp, 4
push esi
call fcn.00494034
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
xor ecx, esp
call fcn.00493955
mov esp, ebp
pop ebp
ret